harness-engineering-agent 0.3.24 → 0.3.26

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 (75) hide show
  1. package/README.md +13 -4
  2. package/dist/config/config-defaults.d.ts +1 -0
  3. package/dist/config/config-defaults.d.ts.map +1 -1
  4. package/dist/config/config-defaults.js +1 -0
  5. package/dist/config/config-defaults.js.map +1 -1
  6. package/dist/config/config-merge.d.ts.map +1 -1
  7. package/dist/config/config-merge.js +4 -0
  8. package/dist/config/config-merge.js.map +1 -1
  9. package/dist/config/config-schema.d.ts +2 -0
  10. package/dist/config/config-schema.d.ts.map +1 -1
  11. package/dist/config/config-schema.js +2 -0
  12. package/dist/config/config-schema.js.map +1 -1
  13. package/dist/config/config-types.d.ts +1 -0
  14. package/dist/config/config-types.d.ts.map +1 -1
  15. package/dist/config/global-config-init.js +1 -0
  16. package/dist/config/global-config-init.js.map +1 -1
  17. package/dist/controller/agent-output-contracts.d.ts +762 -0
  18. package/dist/controller/agent-output-contracts.d.ts.map +1 -0
  19. package/dist/controller/agent-output-contracts.js +178 -0
  20. package/dist/controller/agent-output-contracts.js.map +1 -0
  21. package/dist/controller/agent-output-protocol.d.ts +7 -1
  22. package/dist/controller/agent-output-protocol.d.ts.map +1 -1
  23. package/dist/controller/agent-output-protocol.js +66 -12
  24. package/dist/controller/agent-output-protocol.js.map +1 -1
  25. package/dist/controller/agent-output.d.ts +5 -0
  26. package/dist/controller/agent-output.d.ts.map +1 -1
  27. package/dist/controller/agent-output.js +125 -12
  28. package/dist/controller/agent-output.js.map +1 -1
  29. package/dist/controller/agent-session-utils.d.ts +5 -0
  30. package/dist/controller/agent-session-utils.d.ts.map +1 -1
  31. package/dist/controller/agent-session-utils.js +5 -0
  32. package/dist/controller/agent-session-utils.js.map +1 -1
  33. package/dist/controller/agent-session.d.ts +2 -0
  34. package/dist/controller/agent-session.d.ts.map +1 -1
  35. package/dist/controller/agent-session.js +20 -9
  36. package/dist/controller/agent-session.js.map +1 -1
  37. package/dist/controller/contracts.d.ts +1 -0
  38. package/dist/controller/contracts.d.ts.map +1 -1
  39. package/dist/controller/errors.d.ts +12 -1
  40. package/dist/controller/errors.d.ts.map +1 -1
  41. package/dist/controller/errors.js +4 -0
  42. package/dist/controller/errors.js.map +1 -1
  43. package/dist/controller/index.d.ts +1 -1
  44. package/dist/controller/index.d.ts.map +1 -1
  45. package/dist/controller/index.js +1 -1
  46. package/dist/controller/index.js.map +1 -1
  47. package/dist/controller/planner-context-contract.d.ts.map +1 -1
  48. package/dist/controller/planner-context-contract.js +21 -2
  49. package/dist/controller/planner-context-contract.js.map +1 -1
  50. package/dist/controller/run-acceptance.d.ts.map +1 -1
  51. package/dist/controller/run-acceptance.js +4 -6
  52. package/dist/controller/run-acceptance.js.map +1 -1
  53. package/dist/controller/run-controller.d.ts.map +1 -1
  54. package/dist/controller/run-controller.js +40 -20
  55. package/dist/controller/run-controller.js.map +1 -1
  56. package/dist/controller/task-agent-output.d.ts +2 -0
  57. package/dist/controller/task-agent-output.d.ts.map +1 -1
  58. package/dist/controller/task-agent-output.js +27 -36
  59. package/dist/controller/task-agent-output.js.map +1 -1
  60. package/dist/controller/task-executor.d.ts.map +1 -1
  61. package/dist/controller/task-executor.js +3 -0
  62. package/dist/controller/task-executor.js.map +1 -1
  63. package/dist/plugin/harness-coordinator.d.ts.map +1 -1
  64. package/dist/plugin/harness-coordinator.js +73 -9
  65. package/dist/plugin/harness-coordinator.js.map +1 -1
  66. package/dist/plugin/harness-intake-prompt.d.ts.map +1 -1
  67. package/dist/plugin/harness-intake-prompt.js +3 -0
  68. package/dist/plugin/harness-intake-prompt.js.map +1 -1
  69. package/dist/plugin/harness-plugin-runtime.d.ts.map +1 -1
  70. package/dist/plugin/harness-plugin-runtime.js +1 -0
  71. package/dist/plugin/harness-plugin-runtime.js.map +1 -1
  72. package/dist/plugin/harness-request-router.d.ts.map +1 -1
  73. package/dist/plugin/harness-request-router.js +17 -0
  74. package/dist/plugin/harness-request-router.js.map +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,762 @@
1
+ import type { z } from "zod";
2
+ export declare const WorkerOutputContract: {
3
+ readonly schemaVersion: "1.0.0";
4
+ readonly type: "WorkerOutput";
5
+ readonly requiredFields: readonly ["schemaVersion", "role", "status", "summary", "evidenceIds", "changedPaths"];
6
+ readonly example: Readonly<Readonly<{
7
+ schemaVersion: "1.0.0";
8
+ summary: string;
9
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
10
+ role: "worker";
11
+ status: "completed";
12
+ changedPaths: readonly string[];
13
+ repositoryId?: string | undefined;
14
+ }>> | Readonly<Readonly<{
15
+ schemaVersion: "1.0.0";
16
+ summary: string;
17
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
18
+ role: "worker";
19
+ status: "blocked";
20
+ blockingReason: string;
21
+ }>> | Readonly<Readonly<{
22
+ schemaVersion: "1.0.0";
23
+ summary: string;
24
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
25
+ role: "worker";
26
+ status: "evidence_gap";
27
+ missingEvidenceKinds: readonly ("verification" | "red" | "green" | "refactor" | "approval" | "artifact-summary")[];
28
+ }>> | Readonly<Readonly<{
29
+ schemaVersion: "1.0.0";
30
+ summary: string;
31
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
32
+ role: "worker";
33
+ status: "failed";
34
+ failureId: string;
35
+ }>>;
36
+ };
37
+ export declare const VerifierOutputContract: {
38
+ readonly schemaVersion: "1.0.0";
39
+ readonly type: "VerifierOutput";
40
+ readonly requiredFields: readonly ["schemaVersion", "role", "status", "summary", "evidenceIds"];
41
+ readonly example: Readonly<Readonly<{
42
+ schemaVersion: "1.0.0";
43
+ role: "verifier";
44
+ status: "passed";
45
+ summary: string;
46
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
47
+ taskReview?: Readonly<{
48
+ schemaVersion: "1.0.0";
49
+ reviewId: string;
50
+ runId: string & z.core.$brand<"RunId">;
51
+ taskId: string & z.core.$brand<"TaskId">;
52
+ requirementId: string;
53
+ acceptanceCriterionIds: readonly string[];
54
+ status: "failed" | "passed";
55
+ summary: string;
56
+ changedPaths: readonly string[];
57
+ specCompliance: Readonly<{
58
+ verdict: "pass" | "fail";
59
+ summary: string;
60
+ findings: readonly Readonly<{
61
+ severity: "critical" | "important" | "advisory";
62
+ category: "spec-compliance" | "code-quality";
63
+ message: string;
64
+ changedPath?: string | undefined;
65
+ }>[];
66
+ }>;
67
+ codeQuality: Readonly<{
68
+ verdict: "pass" | "fail";
69
+ summary: string;
70
+ findings: readonly Readonly<{
71
+ severity: "critical" | "important" | "advisory";
72
+ category: "spec-compliance" | "code-quality";
73
+ message: string;
74
+ changedPath?: string | undefined;
75
+ }>[];
76
+ }>;
77
+ repositoryId?: string | undefined;
78
+ }> | undefined;
79
+ }>> | Readonly<Readonly<{
80
+ schemaVersion: "1.0.0";
81
+ role: "verifier";
82
+ status: "failed";
83
+ summary: string;
84
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
85
+ taskReview?: Readonly<{
86
+ schemaVersion: "1.0.0";
87
+ reviewId: string;
88
+ runId: string & z.core.$brand<"RunId">;
89
+ taskId: string & z.core.$brand<"TaskId">;
90
+ requirementId: string;
91
+ acceptanceCriterionIds: readonly string[];
92
+ status: "failed" | "passed";
93
+ summary: string;
94
+ changedPaths: readonly string[];
95
+ specCompliance: Readonly<{
96
+ verdict: "pass" | "fail";
97
+ summary: string;
98
+ findings: readonly Readonly<{
99
+ severity: "critical" | "important" | "advisory";
100
+ category: "spec-compliance" | "code-quality";
101
+ message: string;
102
+ changedPath?: string | undefined;
103
+ }>[];
104
+ }>;
105
+ codeQuality: Readonly<{
106
+ verdict: "pass" | "fail";
107
+ summary: string;
108
+ findings: readonly Readonly<{
109
+ severity: "critical" | "important" | "advisory";
110
+ category: "spec-compliance" | "code-quality";
111
+ message: string;
112
+ changedPath?: string | undefined;
113
+ }>[];
114
+ }>;
115
+ repositoryId?: string | undefined;
116
+ }> | undefined;
117
+ }>> | Readonly<Readonly<{
118
+ schemaVersion: "1.0.0";
119
+ role: "verifier";
120
+ status: "approved";
121
+ summary: string;
122
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
123
+ planReview: Readonly<{
124
+ schemaVersion: "1.0.0";
125
+ reviewId: string;
126
+ runId: string & z.core.$brand<"RunId">;
127
+ graphId: string;
128
+ requirementId: string;
129
+ status: "approved" | "rejected";
130
+ summary: string;
131
+ requirement: Readonly<{
132
+ schemaVersion: "1.0.0";
133
+ requirementId: string;
134
+ title: string;
135
+ summary: string;
136
+ acceptanceCriteria: readonly Readonly<{
137
+ criterionId: string;
138
+ text: string;
139
+ }>[];
140
+ complexityAssessment?: Readonly<{
141
+ tier: "trivial" | "standard" | "complex";
142
+ rationale: string;
143
+ estimatedFileCount: number;
144
+ estimatedCrossModuleDeps: number;
145
+ suggestedRoute: "direct" | "streamlined" | "full" | "parallel";
146
+ confidence: "high" | "medium" | "low";
147
+ }> | undefined;
148
+ coordinationAnalysis?: Readonly<{
149
+ surfaceForm: string;
150
+ trueIntent: string;
151
+ actionPlan: readonly string[];
152
+ reflectionNotes: readonly string[];
153
+ }> | undefined;
154
+ taskSchedulingAnalysis?: Readonly<{
155
+ requestKind: "ordinary" | "lifecycle" | "engineering_task" | "ambiguous";
156
+ shouldCoordinate: boolean;
157
+ requiresPlanBeforeExecution: boolean;
158
+ routingRationale: string;
159
+ rejudgementTriggers: readonly string[];
160
+ }> | undefined;
161
+ repositoryId?: string | undefined;
162
+ targetRepository?: string | undefined;
163
+ workspaceMutation?: "allowed" | "forbidden" | undefined;
164
+ }>;
165
+ taskGraph: Readonly<{
166
+ schemaVersion: "1.0.0";
167
+ graphId: string;
168
+ runId: string & z.core.$brand<"RunId">;
169
+ version: number;
170
+ tasks: readonly Readonly<{
171
+ schemaVersion: "1.0.0";
172
+ taskId: string & z.core.$brand<"TaskId">;
173
+ runId: string & z.core.$brand<"RunId">;
174
+ requirementIds: readonly string[];
175
+ title: string;
176
+ summary: string;
177
+ status: "blocked" | "paused" | "failed" | "completed" | "planned" | "ready" | "in_progress";
178
+ allowedPaths: readonly string[];
179
+ acceptanceCriterionIds: readonly string[];
180
+ executionCategory: "quick" | "deep" | "visual-engineering" | "ultrabrain";
181
+ verificationPlan: readonly Readonly<{
182
+ name: string;
183
+ command: string;
184
+ workingDirectory: string;
185
+ scope: "task" | "project" | "integration";
186
+ sideEffectLevel: "read_only" | "workspace_write" | "external_side_effect";
187
+ timeoutMs: number;
188
+ args?: readonly string[] | undefined;
189
+ origin?: "config" | "planner" | "worker" | "failure-analyzer" | "repair" | undefined;
190
+ requiresConfirmation?: boolean | undefined;
191
+ confirmation?: Readonly<{
192
+ approvedBy: string;
193
+ reason: string;
194
+ }> | undefined;
195
+ allowedEnv?: Readonly<Record<string, string>> | undefined;
196
+ }>[];
197
+ retryBudget: Readonly<{
198
+ maxAttempts: number;
199
+ maxRepairAttempts: number;
200
+ }>;
201
+ dependencies: readonly (string & z.core.$brand<"TaskId">)[];
202
+ evidenceRefs: readonly (string & z.core.$brand<"EvidenceId">)[];
203
+ repairEnabled: boolean;
204
+ assignedAgentRole: "intake" | "planner" | "worker" | "verifier" | "failure-analyzer" | "repair-worker" | "acceptance";
205
+ repositoryId?: string | undefined;
206
+ complexityTier?: "trivial" | "standard" | "complex" | undefined;
207
+ tierOverriddenFrom?: "trivial" | "standard" | "complex" | undefined;
208
+ modelProfile?: Readonly<{
209
+ provider: string;
210
+ model: string;
211
+ }> | undefined;
212
+ workspaceMutation?: "allowed" | "forbidden" | undefined;
213
+ }>[];
214
+ edges: readonly Readonly<{
215
+ fromTaskId: string & z.core.$brand<"TaskId">;
216
+ toTaskId: string & z.core.$brand<"TaskId">;
217
+ }>[];
218
+ repositoryId?: string | undefined;
219
+ }>;
220
+ contextPackage: Readonly<{
221
+ schemaVersion: "1.0.0";
222
+ contextPackageId: string;
223
+ runId: string & z.core.$brand<"RunId">;
224
+ requirementId: string;
225
+ summary: string;
226
+ repositoryReferences: readonly (Readonly<{
227
+ path: string;
228
+ reason: string;
229
+ kind: "file";
230
+ }> | Readonly<{
231
+ symbol: string;
232
+ path: string;
233
+ reason: string;
234
+ kind: "symbol";
235
+ }>)[];
236
+ externalReferences: readonly Readonly<{
237
+ title: string;
238
+ sourceType: "spec" | "doc" | "repo" | "issue";
239
+ locator: string;
240
+ reason: string;
241
+ }>[];
242
+ unresolvedQuestions: readonly Readonly<{
243
+ questionId: string;
244
+ question: string;
245
+ impact: string;
246
+ }>[];
247
+ constraints: readonly string[];
248
+ }>;
249
+ coverage: readonly Readonly<{
250
+ criterionId: string;
251
+ criterion: string;
252
+ coveredByTaskIds: readonly (string & z.core.$brand<"TaskId">)[];
253
+ verificationCommandNames: readonly string[];
254
+ }>[];
255
+ findings: readonly Readonly<{
256
+ severity: "critical" | "important" | "advisory";
257
+ message: string;
258
+ taskId?: (string & z.core.$brand<"TaskId">) | undefined;
259
+ criterionId?: string | undefined;
260
+ }>[];
261
+ reviewedTasks: readonly Readonly<{
262
+ taskId: string & z.core.$brand<"TaskId">;
263
+ executionCategory: "quick" | "deep" | "visual-engineering" | "ultrabrain";
264
+ requirementIds: readonly string[];
265
+ acceptanceCriterionIds: readonly string[];
266
+ allowedPaths: readonly string[];
267
+ dependencies: readonly (string & z.core.$brand<"TaskId">)[];
268
+ verificationCommandNames: readonly string[];
269
+ }>[];
270
+ }>;
271
+ }>> | Readonly<Readonly<{
272
+ schemaVersion: "1.0.0";
273
+ role: "verifier";
274
+ status: "rejected";
275
+ summary: string;
276
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
277
+ planReview: Readonly<{
278
+ schemaVersion: "1.0.0";
279
+ reviewId: string;
280
+ runId: string & z.core.$brand<"RunId">;
281
+ graphId: string;
282
+ requirementId: string;
283
+ status: "approved" | "rejected";
284
+ summary: string;
285
+ requirement: Readonly<{
286
+ schemaVersion: "1.0.0";
287
+ requirementId: string;
288
+ title: string;
289
+ summary: string;
290
+ acceptanceCriteria: readonly Readonly<{
291
+ criterionId: string;
292
+ text: string;
293
+ }>[];
294
+ complexityAssessment?: Readonly<{
295
+ tier: "trivial" | "standard" | "complex";
296
+ rationale: string;
297
+ estimatedFileCount: number;
298
+ estimatedCrossModuleDeps: number;
299
+ suggestedRoute: "direct" | "streamlined" | "full" | "parallel";
300
+ confidence: "high" | "medium" | "low";
301
+ }> | undefined;
302
+ coordinationAnalysis?: Readonly<{
303
+ surfaceForm: string;
304
+ trueIntent: string;
305
+ actionPlan: readonly string[];
306
+ reflectionNotes: readonly string[];
307
+ }> | undefined;
308
+ taskSchedulingAnalysis?: Readonly<{
309
+ requestKind: "ordinary" | "lifecycle" | "engineering_task" | "ambiguous";
310
+ shouldCoordinate: boolean;
311
+ requiresPlanBeforeExecution: boolean;
312
+ routingRationale: string;
313
+ rejudgementTriggers: readonly string[];
314
+ }> | undefined;
315
+ repositoryId?: string | undefined;
316
+ targetRepository?: string | undefined;
317
+ workspaceMutation?: "allowed" | "forbidden" | undefined;
318
+ }>;
319
+ taskGraph: Readonly<{
320
+ schemaVersion: "1.0.0";
321
+ graphId: string;
322
+ runId: string & z.core.$brand<"RunId">;
323
+ version: number;
324
+ tasks: readonly Readonly<{
325
+ schemaVersion: "1.0.0";
326
+ taskId: string & z.core.$brand<"TaskId">;
327
+ runId: string & z.core.$brand<"RunId">;
328
+ requirementIds: readonly string[];
329
+ title: string;
330
+ summary: string;
331
+ status: "blocked" | "paused" | "failed" | "completed" | "planned" | "ready" | "in_progress";
332
+ allowedPaths: readonly string[];
333
+ acceptanceCriterionIds: readonly string[];
334
+ executionCategory: "quick" | "deep" | "visual-engineering" | "ultrabrain";
335
+ verificationPlan: readonly Readonly<{
336
+ name: string;
337
+ command: string;
338
+ workingDirectory: string;
339
+ scope: "task" | "project" | "integration";
340
+ sideEffectLevel: "read_only" | "workspace_write" | "external_side_effect";
341
+ timeoutMs: number;
342
+ args?: readonly string[] | undefined;
343
+ origin?: "config" | "planner" | "worker" | "failure-analyzer" | "repair" | undefined;
344
+ requiresConfirmation?: boolean | undefined;
345
+ confirmation?: Readonly<{
346
+ approvedBy: string;
347
+ reason: string;
348
+ }> | undefined;
349
+ allowedEnv?: Readonly<Record<string, string>> | undefined;
350
+ }>[];
351
+ retryBudget: Readonly<{
352
+ maxAttempts: number;
353
+ maxRepairAttempts: number;
354
+ }>;
355
+ dependencies: readonly (string & z.core.$brand<"TaskId">)[];
356
+ evidenceRefs: readonly (string & z.core.$brand<"EvidenceId">)[];
357
+ repairEnabled: boolean;
358
+ assignedAgentRole: "intake" | "planner" | "worker" | "verifier" | "failure-analyzer" | "repair-worker" | "acceptance";
359
+ repositoryId?: string | undefined;
360
+ complexityTier?: "trivial" | "standard" | "complex" | undefined;
361
+ tierOverriddenFrom?: "trivial" | "standard" | "complex" | undefined;
362
+ modelProfile?: Readonly<{
363
+ provider: string;
364
+ model: string;
365
+ }> | undefined;
366
+ workspaceMutation?: "allowed" | "forbidden" | undefined;
367
+ }>[];
368
+ edges: readonly Readonly<{
369
+ fromTaskId: string & z.core.$brand<"TaskId">;
370
+ toTaskId: string & z.core.$brand<"TaskId">;
371
+ }>[];
372
+ repositoryId?: string | undefined;
373
+ }>;
374
+ contextPackage: Readonly<{
375
+ schemaVersion: "1.0.0";
376
+ contextPackageId: string;
377
+ runId: string & z.core.$brand<"RunId">;
378
+ requirementId: string;
379
+ summary: string;
380
+ repositoryReferences: readonly (Readonly<{
381
+ path: string;
382
+ reason: string;
383
+ kind: "file";
384
+ }> | Readonly<{
385
+ symbol: string;
386
+ path: string;
387
+ reason: string;
388
+ kind: "symbol";
389
+ }>)[];
390
+ externalReferences: readonly Readonly<{
391
+ title: string;
392
+ sourceType: "spec" | "doc" | "repo" | "issue";
393
+ locator: string;
394
+ reason: string;
395
+ }>[];
396
+ unresolvedQuestions: readonly Readonly<{
397
+ questionId: string;
398
+ question: string;
399
+ impact: string;
400
+ }>[];
401
+ constraints: readonly string[];
402
+ }>;
403
+ coverage: readonly Readonly<{
404
+ criterionId: string;
405
+ criterion: string;
406
+ coveredByTaskIds: readonly (string & z.core.$brand<"TaskId">)[];
407
+ verificationCommandNames: readonly string[];
408
+ }>[];
409
+ findings: readonly Readonly<{
410
+ severity: "critical" | "important" | "advisory";
411
+ message: string;
412
+ taskId?: (string & z.core.$brand<"TaskId">) | undefined;
413
+ criterionId?: string | undefined;
414
+ }>[];
415
+ reviewedTasks: readonly Readonly<{
416
+ taskId: string & z.core.$brand<"TaskId">;
417
+ executionCategory: "quick" | "deep" | "visual-engineering" | "ultrabrain";
418
+ requirementIds: readonly string[];
419
+ acceptanceCriterionIds: readonly string[];
420
+ allowedPaths: readonly string[];
421
+ dependencies: readonly (string & z.core.$brand<"TaskId">)[];
422
+ verificationCommandNames: readonly string[];
423
+ }>[];
424
+ }>;
425
+ }>> | Readonly<Readonly<{
426
+ schemaVersion: "1.0.0";
427
+ role: "verifier";
428
+ status: "evidence_gap";
429
+ summary: string;
430
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
431
+ missingEvidenceKinds: readonly ("verification" | "red" | "green" | "refactor" | "approval" | "artifact-summary")[];
432
+ taskReview?: Readonly<{
433
+ schemaVersion: "1.0.0";
434
+ reviewId: string;
435
+ runId: string & z.core.$brand<"RunId">;
436
+ taskId: string & z.core.$brand<"TaskId">;
437
+ requirementId: string;
438
+ acceptanceCriterionIds: readonly string[];
439
+ status: "failed" | "passed";
440
+ summary: string;
441
+ changedPaths: readonly string[];
442
+ specCompliance: Readonly<{
443
+ verdict: "pass" | "fail";
444
+ summary: string;
445
+ findings: readonly Readonly<{
446
+ severity: "critical" | "important" | "advisory";
447
+ category: "spec-compliance" | "code-quality";
448
+ message: string;
449
+ changedPath?: string | undefined;
450
+ }>[];
451
+ }>;
452
+ codeQuality: Readonly<{
453
+ verdict: "pass" | "fail";
454
+ summary: string;
455
+ findings: readonly Readonly<{
456
+ severity: "critical" | "important" | "advisory";
457
+ category: "spec-compliance" | "code-quality";
458
+ message: string;
459
+ changedPath?: string | undefined;
460
+ }>[];
461
+ }>;
462
+ repositoryId?: string | undefined;
463
+ }> | undefined;
464
+ }>>;
465
+ };
466
+ export declare const TaskReviewOutputContract: {
467
+ readonly schemaVersion: "1.0.0";
468
+ readonly type: "TaskReview";
469
+ readonly requiredFields: readonly ["schemaVersion", "role", "status", "summary", "evidenceIds", "taskReview"];
470
+ readonly example: Readonly<Readonly<{
471
+ schemaVersion: "1.0.0";
472
+ role: "verifier";
473
+ status: "passed";
474
+ summary: string;
475
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
476
+ taskReview: Readonly<{
477
+ schemaVersion: "1.0.0";
478
+ reviewId: string;
479
+ runId: string & z.core.$brand<"RunId">;
480
+ taskId: string & z.core.$brand<"TaskId">;
481
+ requirementId: string;
482
+ acceptanceCriterionIds: readonly string[];
483
+ status: "failed" | "passed";
484
+ summary: string;
485
+ changedPaths: readonly string[];
486
+ specCompliance: Readonly<{
487
+ verdict: "pass" | "fail";
488
+ summary: string;
489
+ findings: readonly Readonly<{
490
+ severity: "critical" | "important" | "advisory";
491
+ category: "spec-compliance" | "code-quality";
492
+ message: string;
493
+ changedPath?: string | undefined;
494
+ }>[];
495
+ }>;
496
+ codeQuality: Readonly<{
497
+ verdict: "pass" | "fail";
498
+ summary: string;
499
+ findings: readonly Readonly<{
500
+ severity: "critical" | "important" | "advisory";
501
+ category: "spec-compliance" | "code-quality";
502
+ message: string;
503
+ changedPath?: string | undefined;
504
+ }>[];
505
+ }>;
506
+ repositoryId?: string | undefined;
507
+ }>;
508
+ }>> | Readonly<Readonly<{
509
+ schemaVersion: "1.0.0";
510
+ role: "verifier";
511
+ status: "failed";
512
+ summary: string;
513
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
514
+ taskReview: Readonly<{
515
+ schemaVersion: "1.0.0";
516
+ reviewId: string;
517
+ runId: string & z.core.$brand<"RunId">;
518
+ taskId: string & z.core.$brand<"TaskId">;
519
+ requirementId: string;
520
+ acceptanceCriterionIds: readonly string[];
521
+ status: "failed" | "passed";
522
+ summary: string;
523
+ changedPaths: readonly string[];
524
+ specCompliance: Readonly<{
525
+ verdict: "pass" | "fail";
526
+ summary: string;
527
+ findings: readonly Readonly<{
528
+ severity: "critical" | "important" | "advisory";
529
+ category: "spec-compliance" | "code-quality";
530
+ message: string;
531
+ changedPath?: string | undefined;
532
+ }>[];
533
+ }>;
534
+ codeQuality: Readonly<{
535
+ verdict: "pass" | "fail";
536
+ summary: string;
537
+ findings: readonly Readonly<{
538
+ severity: "critical" | "important" | "advisory";
539
+ category: "spec-compliance" | "code-quality";
540
+ message: string;
541
+ changedPath?: string | undefined;
542
+ }>[];
543
+ }>;
544
+ repositoryId?: string | undefined;
545
+ }>;
546
+ }>> | Readonly<Readonly<{
547
+ schemaVersion: "1.0.0";
548
+ role: "verifier";
549
+ status: "evidence_gap";
550
+ summary: string;
551
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
552
+ missingEvidenceKinds: readonly ("verification" | "red" | "green" | "refactor" | "approval" | "artifact-summary")[];
553
+ taskReview: Readonly<{
554
+ schemaVersion: "1.0.0";
555
+ reviewId: string;
556
+ runId: string & z.core.$brand<"RunId">;
557
+ taskId: string & z.core.$brand<"TaskId">;
558
+ requirementId: string;
559
+ acceptanceCriterionIds: readonly string[];
560
+ status: "failed" | "passed";
561
+ summary: string;
562
+ changedPaths: readonly string[];
563
+ specCompliance: Readonly<{
564
+ verdict: "pass" | "fail";
565
+ summary: string;
566
+ findings: readonly Readonly<{
567
+ severity: "critical" | "important" | "advisory";
568
+ category: "spec-compliance" | "code-quality";
569
+ message: string;
570
+ changedPath?: string | undefined;
571
+ }>[];
572
+ }>;
573
+ codeQuality: Readonly<{
574
+ verdict: "pass" | "fail";
575
+ summary: string;
576
+ findings: readonly Readonly<{
577
+ severity: "critical" | "important" | "advisory";
578
+ category: "spec-compliance" | "code-quality";
579
+ message: string;
580
+ changedPath?: string | undefined;
581
+ }>[];
582
+ }>;
583
+ repositoryId?: string | undefined;
584
+ }>;
585
+ }>>;
586
+ };
587
+ export declare const AcceptanceOutputContract: {
588
+ readonly schemaVersion: "1.0.0";
589
+ readonly type: "AcceptanceOutput";
590
+ readonly requiredFields: readonly ["schemaVersion", "role", "status", "summary", "evidenceIds"];
591
+ readonly example: Readonly<Readonly<{
592
+ schemaVersion: "1.0.0";
593
+ role: "acceptance";
594
+ status: "accepted";
595
+ summary: string;
596
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
597
+ }>> | Readonly<Readonly<{
598
+ schemaVersion: "1.0.0";
599
+ role: "acceptance";
600
+ status: "failed";
601
+ summary: string;
602
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
603
+ }>> | Readonly<Readonly<{
604
+ schemaVersion: "1.0.0";
605
+ role: "acceptance";
606
+ status: "evidence_gap";
607
+ summary: string;
608
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
609
+ missingEvidenceKinds: readonly ("verification" | "red" | "green" | "refactor" | "approval" | "artifact-summary")[];
610
+ }>>;
611
+ };
612
+ export declare const FailureAnalyzerOutputContract: {
613
+ readonly schemaVersion: "1.0.0";
614
+ readonly type: "FailureAnalyzerOutput";
615
+ readonly requiredFields: readonly ["schemaVersion", "role", "action", "summary", "evidenceIds", "category"];
616
+ readonly example: Readonly<{
617
+ schemaVersion: "1.0.0";
618
+ role: "failure-analyzer";
619
+ action: "repair";
620
+ summary: string;
621
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
622
+ category: "implementation-defect";
623
+ confirmedRootCause: true;
624
+ }> | Readonly<{
625
+ schemaVersion: "1.0.0";
626
+ role: "failure-analyzer";
627
+ action: "probe";
628
+ summary: string;
629
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
630
+ category: "context-gap" | "implementation-defect" | "verification-environment";
631
+ diagnosticProbe: Readonly<{
632
+ summary: string;
633
+ verificationCommand: Readonly<{
634
+ name: string;
635
+ command: string;
636
+ workingDirectory: string;
637
+ scope: "task";
638
+ sideEffectLevel: "read_only";
639
+ timeoutMs: number;
640
+ args?: readonly string[] | undefined;
641
+ origin?: "failure-analyzer" | undefined;
642
+ requiresConfirmation?: false | undefined;
643
+ confirmation?: undefined;
644
+ allowedEnv?: Readonly<Record<string, string>> | undefined;
645
+ }>;
646
+ }>;
647
+ }> | Readonly<{
648
+ schemaVersion: "1.0.0";
649
+ role: "failure-analyzer";
650
+ action: "clarify";
651
+ summary: string;
652
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
653
+ category: "context-gap" | "requirement-ambiguity";
654
+ missingContext: readonly string[];
655
+ }> | Readonly<{
656
+ schemaVersion: "1.0.0";
657
+ role: "failure-analyzer";
658
+ action: "wait";
659
+ summary: string;
660
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
661
+ category: "dependency-blocked";
662
+ blockedDependency: string;
663
+ }> | Readonly<{
664
+ schemaVersion: "1.0.0";
665
+ role: "failure-analyzer";
666
+ action: "terminate";
667
+ summary: string;
668
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
669
+ category: "verification-environment" | "model-failure";
670
+ }>;
671
+ };
672
+ export declare const RepairWorkerOutputContract: {
673
+ readonly schemaVersion: "1.0.0";
674
+ readonly type: "RepairWorkerOutput";
675
+ readonly requiredFields: readonly ["schemaVersion", "role", "status", "summary", "evidenceIds", "repairTask"];
676
+ readonly example: Readonly<{
677
+ schemaVersion: "1.0.0";
678
+ role: "repair-worker";
679
+ status: "planned";
680
+ summary: string;
681
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
682
+ repairTask: Readonly<{
683
+ schemaVersion: "1.0.0";
684
+ repairTaskId: string;
685
+ version: number;
686
+ sourceTaskId: string & z.core.$brand<"TaskId">;
687
+ sourceFailureId: string;
688
+ rootCauseFingerprint: string;
689
+ summary: string;
690
+ allowedPaths: readonly string[];
691
+ acceptanceCriterionIds: readonly string[];
692
+ retryBudget: Readonly<{
693
+ maxAttempts: number;
694
+ maxRepairAttempts: number;
695
+ }>;
696
+ failureEvidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
697
+ verificationPlan: Readonly<{
698
+ minimalFailureSet: readonly Readonly<{
699
+ name: string;
700
+ command: string;
701
+ workingDirectory: string;
702
+ scope: "task" | "project" | "integration";
703
+ sideEffectLevel: "read_only" | "workspace_write" | "external_side_effect";
704
+ timeoutMs: number;
705
+ args?: readonly string[] | undefined;
706
+ origin?: "config" | "planner" | "worker" | "failure-analyzer" | "repair" | undefined;
707
+ requiresConfirmation?: boolean | undefined;
708
+ confirmation?: Readonly<{
709
+ approvedBy: string;
710
+ reason: string;
711
+ }> | undefined;
712
+ allowedEnv?: Readonly<Record<string, string>> | undefined;
713
+ }>[];
714
+ fullVerification: readonly Readonly<{
715
+ name: string;
716
+ command: string;
717
+ workingDirectory: string;
718
+ scope: "task" | "project" | "integration";
719
+ sideEffectLevel: "read_only" | "workspace_write" | "external_side_effect";
720
+ timeoutMs: number;
721
+ args?: readonly string[] | undefined;
722
+ origin?: "config" | "planner" | "worker" | "failure-analyzer" | "repair" | undefined;
723
+ requiresConfirmation?: boolean | undefined;
724
+ confirmation?: Readonly<{
725
+ approvedBy: string;
726
+ reason: string;
727
+ }> | undefined;
728
+ allowedEnv?: Readonly<Record<string, string>> | undefined;
729
+ }>[];
730
+ }>;
731
+ phaseEvidenceKinds: ["red", "green", "refactor"];
732
+ repositoryId?: string | undefined;
733
+ }>;
734
+ }>;
735
+ };
736
+ export declare const RunAcceptanceOutputContract: {
737
+ readonly schemaVersion: "1.0.0";
738
+ readonly type: "RunAcceptance";
739
+ readonly requiredFields: readonly ["schemaVersion", "acceptanceId", "runId", "status", "summary", "criterionDecisions"];
740
+ readonly example: Readonly<{
741
+ schemaVersion: "1.0.0";
742
+ acceptanceId: string;
743
+ runId: string & z.core.$brand<"RunId">;
744
+ status: "unknown" | "accepted" | "blocked" | "waived";
745
+ summary: string;
746
+ criterionDecisions: readonly Readonly<{
747
+ criterionId: string;
748
+ requirementId: string;
749
+ status: "unknown" | "accepted" | "blocked" | "waived";
750
+ taskIds: readonly (string & z.core.$brand<"TaskId">)[];
751
+ taskReviewIds: readonly string[];
752
+ evidenceIds: readonly (string & z.core.$brand<"EvidenceId">)[];
753
+ failureIds: readonly string[];
754
+ waiverIds: readonly string[];
755
+ changedPaths: readonly string[];
756
+ summary: string;
757
+ }>[];
758
+ legacyCompletedWithoutTrustworthyAcceptance: boolean;
759
+ repositoryId?: string | undefined;
760
+ }>;
761
+ };
762
+ //# sourceMappingURL=agent-output-contracts.d.ts.map