@osstack/protocol 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/attention.d.ts +863 -0
  2. package/dist/attention.d.ts.map +1 -0
  3. package/dist/attention.js +112 -0
  4. package/dist/attention.js.map +1 -0
  5. package/dist/autonomy.d.ts +14 -14
  6. package/dist/delivery-contract.d.ts +734 -0
  7. package/dist/delivery-contract.d.ts.map +1 -0
  8. package/dist/delivery-contract.js +111 -0
  9. package/dist/delivery-contract.js.map +1 -0
  10. package/dist/envelope.d.ts +42 -42
  11. package/dist/event.d.ts +4 -4
  12. package/dist/follow-up-delivery.d.ts +1831 -0
  13. package/dist/follow-up-delivery.d.ts.map +1 -0
  14. package/dist/follow-up-delivery.js +174 -0
  15. package/dist/follow-up-delivery.js.map +1 -0
  16. package/dist/follow-up.d.ts +1100 -0
  17. package/dist/follow-up.d.ts.map +1 -0
  18. package/dist/follow-up.js +28 -0
  19. package/dist/follow-up.js.map +1 -0
  20. package/dist/generate.d.ts.map +1 -1
  21. package/dist/generate.js +18 -0
  22. package/dist/generate.js.map +1 -1
  23. package/dist/graph-checkpoint.d.ts +6 -6
  24. package/dist/graph-worker.d.ts +26 -26
  25. package/dist/graph.d.ts +886 -592
  26. package/dist/graph.d.ts.map +1 -1
  27. package/dist/graph.js +4 -0
  28. package/dist/graph.js.map +1 -1
  29. package/dist/index.d.ts +4 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +4 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/policy.d.ts +10 -10
  34. package/dist/run.d.ts +4 -4
  35. package/dist/session-continuation-grant.d.ts +36 -36
  36. package/dist/session-continuation.d.ts +26 -26
  37. package/dist/task.d.ts +2 -2
  38. package/package.json +10 -9
  39. package/schemas/attention-inbox.schema.json +271 -0
  40. package/schemas/attention-status.schema.json +434 -0
  41. package/schemas/delivery-contract-v2.schema.json +238 -0
  42. package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
  43. package/schemas/follow-up-create-params.schema.json +78 -0
  44. package/schemas/follow-up-draft-params.schema.json +39 -0
  45. package/schemas/follow-up-list-params.schema.json +42 -0
  46. package/schemas/follow-up-list-result.schema.json +241 -0
  47. package/schemas/follow-up-mutation-result.schema.json +361 -0
  48. package/schemas/follow-up-obligation.schema.json +343 -0
  49. package/schemas/follow-up-resolve-params.schema.json +53 -0
  50. package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
  51. package/schemas/graph.schema.json +30 -0
  52. package/LICENSE +0 -21
@@ -0,0 +1,734 @@
1
+ import { z } from "zod";
2
+ export declare const DeliveryCompletionV2: z.ZodEnum<["local_verified", "pr_opened", "merged", "deployed"]>;
3
+ export declare const DeliveryPublicationScopeV2: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
4
+ mode: z.ZodLiteral<"none">;
5
+ }, "strict", z.ZodTypeAny, {
6
+ mode: "none";
7
+ }, {
8
+ mode: "none";
9
+ }>, z.ZodObject<{
10
+ mode: z.ZodEnum<["push", "draft_pr", "review_pr"]>;
11
+ hostname: z.ZodLiteral<"github.com">;
12
+ repository: z.ZodString;
13
+ remote: z.ZodString;
14
+ base_ref: z.ZodEffects<z.ZodString, string, string>;
15
+ head_ref: z.ZodEffects<z.ZodString, string, string>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ mode: "push" | "draft_pr" | "review_pr";
18
+ hostname: "github.com";
19
+ repository: string;
20
+ remote: string;
21
+ base_ref: string;
22
+ head_ref: string;
23
+ }, {
24
+ mode: "push" | "draft_pr" | "review_pr";
25
+ hostname: "github.com";
26
+ repository: string;
27
+ remote: string;
28
+ base_ref: string;
29
+ head_ref: string;
30
+ }>]>;
31
+ /** Scope and authority references constrain existing host authorization. Neither grants it. */
32
+ export declare const DeliveryContractV2: z.ZodEffects<z.ZodObject<{
33
+ schema_version: z.ZodLiteral<2>;
34
+ contract_id: z.ZodString;
35
+ parent_contract_id: z.ZodOptional<z.ZodString>;
36
+ task_id: z.ZodString;
37
+ canonical_repo: z.ZodEffects<z.ZodString, string, string>;
38
+ mode: z.ZodEnum<["scout", "implement"]>;
39
+ base_head: z.ZodString;
40
+ goal: z.ZodString;
41
+ required_checks: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ registry_ref: z.ZodString;
44
+ }, "strict", z.ZodTypeAny, {
45
+ id: string;
46
+ registry_ref: string;
47
+ }, {
48
+ id: string;
49
+ registry_ref: string;
50
+ }>, "many">;
51
+ review_policy_ref: z.ZodString;
52
+ requested_completion: z.ZodEnum<["local_verified", "pr_opened", "merged", "deployed"]>;
53
+ allowed_paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
54
+ requested_actions: z.ZodArray<z.ZodEnum<["build", "verify", "commit", "push", "open_pr", "merge", "deploy:staging", "deploy:production"]>, "many">;
55
+ budget_ref: z.ZodString;
56
+ policy_digest: z.ZodString;
57
+ publication_scope: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
58
+ mode: z.ZodLiteral<"none">;
59
+ }, "strict", z.ZodTypeAny, {
60
+ mode: "none";
61
+ }, {
62
+ mode: "none";
63
+ }>, z.ZodObject<{
64
+ mode: z.ZodEnum<["push", "draft_pr", "review_pr"]>;
65
+ hostname: z.ZodLiteral<"github.com">;
66
+ repository: z.ZodString;
67
+ remote: z.ZodString;
68
+ base_ref: z.ZodEffects<z.ZodString, string, string>;
69
+ head_ref: z.ZodEffects<z.ZodString, string, string>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ mode: "push" | "draft_pr" | "review_pr";
72
+ hostname: "github.com";
73
+ repository: string;
74
+ remote: string;
75
+ base_ref: string;
76
+ head_ref: string;
77
+ }, {
78
+ mode: "push" | "draft_pr" | "review_pr";
79
+ hostname: "github.com";
80
+ repository: string;
81
+ remote: string;
82
+ base_ref: string;
83
+ head_ref: string;
84
+ }>]>;
85
+ merge_authority: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
86
+ mode: z.ZodLiteral<"none">;
87
+ }, "strict", z.ZodTypeAny, {
88
+ mode: "none";
89
+ }, {
90
+ mode: "none";
91
+ }>, z.ZodObject<{
92
+ mode: z.ZodLiteral<"existing_guarded_policy">;
93
+ policy_ref: z.ZodString;
94
+ }, "strict", z.ZodTypeAny, {
95
+ mode: "existing_guarded_policy";
96
+ policy_ref: string;
97
+ }, {
98
+ mode: "existing_guarded_policy";
99
+ policy_ref: string;
100
+ }>]>;
101
+ }, "strict", z.ZodTypeAny, {
102
+ schema_version: 2;
103
+ mode: "scout" | "implement";
104
+ task_id: string;
105
+ contract_id: string;
106
+ canonical_repo: string;
107
+ base_head: string;
108
+ goal: string;
109
+ required_checks: {
110
+ id: string;
111
+ registry_ref: string;
112
+ }[];
113
+ review_policy_ref: string;
114
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
115
+ allowed_paths: string[];
116
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
117
+ budget_ref: string;
118
+ policy_digest: string;
119
+ publication_scope: {
120
+ mode: "none";
121
+ } | {
122
+ mode: "push" | "draft_pr" | "review_pr";
123
+ hostname: "github.com";
124
+ repository: string;
125
+ remote: string;
126
+ base_ref: string;
127
+ head_ref: string;
128
+ };
129
+ merge_authority: {
130
+ mode: "none";
131
+ } | {
132
+ mode: "existing_guarded_policy";
133
+ policy_ref: string;
134
+ };
135
+ parent_contract_id?: string | undefined;
136
+ }, {
137
+ schema_version: 2;
138
+ mode: "scout" | "implement";
139
+ task_id: string;
140
+ contract_id: string;
141
+ canonical_repo: string;
142
+ base_head: string;
143
+ goal: string;
144
+ required_checks: {
145
+ id: string;
146
+ registry_ref: string;
147
+ }[];
148
+ review_policy_ref: string;
149
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
150
+ allowed_paths: string[];
151
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
152
+ budget_ref: string;
153
+ policy_digest: string;
154
+ publication_scope: {
155
+ mode: "none";
156
+ } | {
157
+ mode: "push" | "draft_pr" | "review_pr";
158
+ hostname: "github.com";
159
+ repository: string;
160
+ remote: string;
161
+ base_ref: string;
162
+ head_ref: string;
163
+ };
164
+ merge_authority: {
165
+ mode: "none";
166
+ } | {
167
+ mode: "existing_guarded_policy";
168
+ policy_ref: string;
169
+ };
170
+ parent_contract_id?: string | undefined;
171
+ }>, {
172
+ schema_version: 2;
173
+ mode: "scout" | "implement";
174
+ task_id: string;
175
+ contract_id: string;
176
+ canonical_repo: string;
177
+ base_head: string;
178
+ goal: string;
179
+ required_checks: {
180
+ id: string;
181
+ registry_ref: string;
182
+ }[];
183
+ review_policy_ref: string;
184
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
185
+ allowed_paths: string[];
186
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
187
+ budget_ref: string;
188
+ policy_digest: string;
189
+ publication_scope: {
190
+ mode: "none";
191
+ } | {
192
+ mode: "push" | "draft_pr" | "review_pr";
193
+ hostname: "github.com";
194
+ repository: string;
195
+ remote: string;
196
+ base_ref: string;
197
+ head_ref: string;
198
+ };
199
+ merge_authority: {
200
+ mode: "none";
201
+ } | {
202
+ mode: "existing_guarded_policy";
203
+ policy_ref: string;
204
+ };
205
+ parent_contract_id?: string | undefined;
206
+ }, {
207
+ schema_version: 2;
208
+ mode: "scout" | "implement";
209
+ task_id: string;
210
+ contract_id: string;
211
+ canonical_repo: string;
212
+ base_head: string;
213
+ goal: string;
214
+ required_checks: {
215
+ id: string;
216
+ registry_ref: string;
217
+ }[];
218
+ review_policy_ref: string;
219
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
220
+ allowed_paths: string[];
221
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
222
+ budget_ref: string;
223
+ policy_digest: string;
224
+ publication_scope: {
225
+ mode: "none";
226
+ } | {
227
+ mode: "push" | "draft_pr" | "review_pr";
228
+ hostname: "github.com";
229
+ repository: string;
230
+ remote: string;
231
+ base_ref: string;
232
+ head_ref: string;
233
+ };
234
+ merge_authority: {
235
+ mode: "none";
236
+ } | {
237
+ mode: "existing_guarded_policy";
238
+ policy_ref: string;
239
+ };
240
+ parent_contract_id?: string | undefined;
241
+ }>;
242
+ export type DeliveryContractV2 = z.infer<typeof DeliveryContractV2>;
243
+ export declare const FrozenDeliveryContractV2: z.ZodObject<{
244
+ contract: z.ZodEffects<z.ZodObject<{
245
+ schema_version: z.ZodLiteral<2>;
246
+ contract_id: z.ZodString;
247
+ parent_contract_id: z.ZodOptional<z.ZodString>;
248
+ task_id: z.ZodString;
249
+ canonical_repo: z.ZodEffects<z.ZodString, string, string>;
250
+ mode: z.ZodEnum<["scout", "implement"]>;
251
+ base_head: z.ZodString;
252
+ goal: z.ZodString;
253
+ required_checks: z.ZodArray<z.ZodObject<{
254
+ id: z.ZodString;
255
+ registry_ref: z.ZodString;
256
+ }, "strict", z.ZodTypeAny, {
257
+ id: string;
258
+ registry_ref: string;
259
+ }, {
260
+ id: string;
261
+ registry_ref: string;
262
+ }>, "many">;
263
+ review_policy_ref: z.ZodString;
264
+ requested_completion: z.ZodEnum<["local_verified", "pr_opened", "merged", "deployed"]>;
265
+ allowed_paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
266
+ requested_actions: z.ZodArray<z.ZodEnum<["build", "verify", "commit", "push", "open_pr", "merge", "deploy:staging", "deploy:production"]>, "many">;
267
+ budget_ref: z.ZodString;
268
+ policy_digest: z.ZodString;
269
+ publication_scope: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
270
+ mode: z.ZodLiteral<"none">;
271
+ }, "strict", z.ZodTypeAny, {
272
+ mode: "none";
273
+ }, {
274
+ mode: "none";
275
+ }>, z.ZodObject<{
276
+ mode: z.ZodEnum<["push", "draft_pr", "review_pr"]>;
277
+ hostname: z.ZodLiteral<"github.com">;
278
+ repository: z.ZodString;
279
+ remote: z.ZodString;
280
+ base_ref: z.ZodEffects<z.ZodString, string, string>;
281
+ head_ref: z.ZodEffects<z.ZodString, string, string>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ mode: "push" | "draft_pr" | "review_pr";
284
+ hostname: "github.com";
285
+ repository: string;
286
+ remote: string;
287
+ base_ref: string;
288
+ head_ref: string;
289
+ }, {
290
+ mode: "push" | "draft_pr" | "review_pr";
291
+ hostname: "github.com";
292
+ repository: string;
293
+ remote: string;
294
+ base_ref: string;
295
+ head_ref: string;
296
+ }>]>;
297
+ merge_authority: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
298
+ mode: z.ZodLiteral<"none">;
299
+ }, "strict", z.ZodTypeAny, {
300
+ mode: "none";
301
+ }, {
302
+ mode: "none";
303
+ }>, z.ZodObject<{
304
+ mode: z.ZodLiteral<"existing_guarded_policy">;
305
+ policy_ref: z.ZodString;
306
+ }, "strict", z.ZodTypeAny, {
307
+ mode: "existing_guarded_policy";
308
+ policy_ref: string;
309
+ }, {
310
+ mode: "existing_guarded_policy";
311
+ policy_ref: string;
312
+ }>]>;
313
+ }, "strict", z.ZodTypeAny, {
314
+ schema_version: 2;
315
+ mode: "scout" | "implement";
316
+ task_id: string;
317
+ contract_id: string;
318
+ canonical_repo: string;
319
+ base_head: string;
320
+ goal: string;
321
+ required_checks: {
322
+ id: string;
323
+ registry_ref: string;
324
+ }[];
325
+ review_policy_ref: string;
326
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
327
+ allowed_paths: string[];
328
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
329
+ budget_ref: string;
330
+ policy_digest: string;
331
+ publication_scope: {
332
+ mode: "none";
333
+ } | {
334
+ mode: "push" | "draft_pr" | "review_pr";
335
+ hostname: "github.com";
336
+ repository: string;
337
+ remote: string;
338
+ base_ref: string;
339
+ head_ref: string;
340
+ };
341
+ merge_authority: {
342
+ mode: "none";
343
+ } | {
344
+ mode: "existing_guarded_policy";
345
+ policy_ref: string;
346
+ };
347
+ parent_contract_id?: string | undefined;
348
+ }, {
349
+ schema_version: 2;
350
+ mode: "scout" | "implement";
351
+ task_id: string;
352
+ contract_id: string;
353
+ canonical_repo: string;
354
+ base_head: string;
355
+ goal: string;
356
+ required_checks: {
357
+ id: string;
358
+ registry_ref: string;
359
+ }[];
360
+ review_policy_ref: string;
361
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
362
+ allowed_paths: string[];
363
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
364
+ budget_ref: string;
365
+ policy_digest: string;
366
+ publication_scope: {
367
+ mode: "none";
368
+ } | {
369
+ mode: "push" | "draft_pr" | "review_pr";
370
+ hostname: "github.com";
371
+ repository: string;
372
+ remote: string;
373
+ base_ref: string;
374
+ head_ref: string;
375
+ };
376
+ merge_authority: {
377
+ mode: "none";
378
+ } | {
379
+ mode: "existing_guarded_policy";
380
+ policy_ref: string;
381
+ };
382
+ parent_contract_id?: string | undefined;
383
+ }>, {
384
+ schema_version: 2;
385
+ mode: "scout" | "implement";
386
+ task_id: string;
387
+ contract_id: string;
388
+ canonical_repo: string;
389
+ base_head: string;
390
+ goal: string;
391
+ required_checks: {
392
+ id: string;
393
+ registry_ref: string;
394
+ }[];
395
+ review_policy_ref: string;
396
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
397
+ allowed_paths: string[];
398
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
399
+ budget_ref: string;
400
+ policy_digest: string;
401
+ publication_scope: {
402
+ mode: "none";
403
+ } | {
404
+ mode: "push" | "draft_pr" | "review_pr";
405
+ hostname: "github.com";
406
+ repository: string;
407
+ remote: string;
408
+ base_ref: string;
409
+ head_ref: string;
410
+ };
411
+ merge_authority: {
412
+ mode: "none";
413
+ } | {
414
+ mode: "existing_guarded_policy";
415
+ policy_ref: string;
416
+ };
417
+ parent_contract_id?: string | undefined;
418
+ }, {
419
+ schema_version: 2;
420
+ mode: "scout" | "implement";
421
+ task_id: string;
422
+ contract_id: string;
423
+ canonical_repo: string;
424
+ base_head: string;
425
+ goal: string;
426
+ required_checks: {
427
+ id: string;
428
+ registry_ref: string;
429
+ }[];
430
+ review_policy_ref: string;
431
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
432
+ allowed_paths: string[];
433
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
434
+ budget_ref: string;
435
+ policy_digest: string;
436
+ publication_scope: {
437
+ mode: "none";
438
+ } | {
439
+ mode: "push" | "draft_pr" | "review_pr";
440
+ hostname: "github.com";
441
+ repository: string;
442
+ remote: string;
443
+ base_ref: string;
444
+ head_ref: string;
445
+ };
446
+ merge_authority: {
447
+ mode: "none";
448
+ } | {
449
+ mode: "existing_guarded_policy";
450
+ policy_ref: string;
451
+ };
452
+ parent_contract_id?: string | undefined;
453
+ }>;
454
+ digest: z.ZodString;
455
+ brief: z.ZodString;
456
+ }, "strict", z.ZodTypeAny, {
457
+ contract: {
458
+ schema_version: 2;
459
+ mode: "scout" | "implement";
460
+ task_id: string;
461
+ contract_id: string;
462
+ canonical_repo: string;
463
+ base_head: string;
464
+ goal: string;
465
+ required_checks: {
466
+ id: string;
467
+ registry_ref: string;
468
+ }[];
469
+ review_policy_ref: string;
470
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
471
+ allowed_paths: string[];
472
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
473
+ budget_ref: string;
474
+ policy_digest: string;
475
+ publication_scope: {
476
+ mode: "none";
477
+ } | {
478
+ mode: "push" | "draft_pr" | "review_pr";
479
+ hostname: "github.com";
480
+ repository: string;
481
+ remote: string;
482
+ base_ref: string;
483
+ head_ref: string;
484
+ };
485
+ merge_authority: {
486
+ mode: "none";
487
+ } | {
488
+ mode: "existing_guarded_policy";
489
+ policy_ref: string;
490
+ };
491
+ parent_contract_id?: string | undefined;
492
+ };
493
+ digest: string;
494
+ brief: string;
495
+ }, {
496
+ contract: {
497
+ schema_version: 2;
498
+ mode: "scout" | "implement";
499
+ task_id: string;
500
+ contract_id: string;
501
+ canonical_repo: string;
502
+ base_head: string;
503
+ goal: string;
504
+ required_checks: {
505
+ id: string;
506
+ registry_ref: string;
507
+ }[];
508
+ review_policy_ref: string;
509
+ requested_completion: "local_verified" | "pr_opened" | "merged" | "deployed";
510
+ allowed_paths: string[];
511
+ requested_actions: ("push" | "build" | "verify" | "commit" | "open_pr" | "merge" | "deploy:staging" | "deploy:production")[];
512
+ budget_ref: string;
513
+ policy_digest: string;
514
+ publication_scope: {
515
+ mode: "none";
516
+ } | {
517
+ mode: "push" | "draft_pr" | "review_pr";
518
+ hostname: "github.com";
519
+ repository: string;
520
+ remote: string;
521
+ base_ref: string;
522
+ head_ref: string;
523
+ };
524
+ merge_authority: {
525
+ mode: "none";
526
+ } | {
527
+ mode: "existing_guarded_policy";
528
+ policy_ref: string;
529
+ };
530
+ parent_contract_id?: string | undefined;
531
+ };
532
+ digest: string;
533
+ brief: string;
534
+ }>;
535
+ export type FrozenDeliveryContractV2 = z.infer<typeof FrozenDeliveryContractV2>;
536
+ export declare const DeliveryCandidateIdentityV2: z.ZodObject<{
537
+ base_head: z.ZodString;
538
+ head: z.ZodString;
539
+ tree_id: z.ZodString;
540
+ diff_digest: z.ZodString;
541
+ }, "strict", z.ZodTypeAny, {
542
+ base_head: string;
543
+ head: string;
544
+ tree_id: string;
545
+ diff_digest: string;
546
+ }, {
547
+ base_head: string;
548
+ head: string;
549
+ tree_id: string;
550
+ diff_digest: string;
551
+ }>;
552
+ export type DeliveryCandidateIdentityV2 = z.infer<typeof DeliveryCandidateIdentityV2>;
553
+ /** Host-generated receipt. Parsing validates structure, never establishes provenance. */
554
+ export declare const DeliveryVerificationReceiptV2: z.ZodObject<{
555
+ schema_version: z.ZodLiteral<2>;
556
+ source: z.ZodLiteral<"osstack_loop_host">;
557
+ run_id: z.ZodString;
558
+ task_id: z.ZodString;
559
+ run_kind: z.ZodEnum<["guarded-local", "guarded-git"]>;
560
+ contract_digest: z.ZodString;
561
+ policy_digest: z.ZodString;
562
+ candidate: z.ZodObject<{
563
+ base_head: z.ZodString;
564
+ head: z.ZodString;
565
+ tree_id: z.ZodString;
566
+ diff_digest: z.ZodString;
567
+ }, "strict", z.ZodTypeAny, {
568
+ base_head: string;
569
+ head: string;
570
+ tree_id: string;
571
+ diff_digest: string;
572
+ }, {
573
+ base_head: string;
574
+ head: string;
575
+ tree_id: string;
576
+ diff_digest: string;
577
+ }>;
578
+ workspace_state_digest: z.ZodString;
579
+ checks: z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ registry_ref: z.ZodString;
582
+ command_digest: z.ZodString;
583
+ exit_code: z.ZodNumber;
584
+ duration_ms: z.ZodNumber;
585
+ }, "strict", z.ZodTypeAny, {
586
+ id: string;
587
+ registry_ref: string;
588
+ command_digest: string;
589
+ exit_code: number;
590
+ duration_ms: number;
591
+ }, {
592
+ id: string;
593
+ registry_ref: string;
594
+ command_digest: string;
595
+ exit_code: number;
596
+ duration_ms: number;
597
+ }>, "many">;
598
+ review: z.ZodObject<{
599
+ policy_ref: z.ZodString;
600
+ verdict: z.ZodEnum<["approved", "changes_requested", "blocked", "inconclusive"]>;
601
+ builder_agent_id: z.ZodString;
602
+ reviewer_agent_id: z.ZodString;
603
+ builder_provider: z.ZodString;
604
+ builder_model: z.ZodString;
605
+ reviewer_provider: z.ZodString;
606
+ reviewer_model: z.ZodString;
607
+ identity_source: z.ZodLiteral<"reported">;
608
+ artifact_digest: z.ZodString;
609
+ }, "strict", z.ZodTypeAny, {
610
+ policy_ref: string;
611
+ verdict: "approved" | "blocked" | "changes_requested" | "inconclusive";
612
+ builder_agent_id: string;
613
+ reviewer_agent_id: string;
614
+ builder_provider: string;
615
+ builder_model: string;
616
+ reviewer_provider: string;
617
+ reviewer_model: string;
618
+ identity_source: "reported";
619
+ artifact_digest: string;
620
+ }, {
621
+ policy_ref: string;
622
+ verdict: "approved" | "blocked" | "changes_requested" | "inconclusive";
623
+ builder_agent_id: string;
624
+ reviewer_agent_id: string;
625
+ builder_provider: string;
626
+ builder_model: string;
627
+ reviewer_provider: string;
628
+ reviewer_model: string;
629
+ identity_source: "reported";
630
+ artifact_digest: string;
631
+ }>;
632
+ observed_at: z.ZodString;
633
+ context_receipt_refs: z.ZodDefault<z.ZodArray<z.ZodObject<{
634
+ path: z.ZodString;
635
+ digest: z.ZodString;
636
+ }, "strict", z.ZodTypeAny, {
637
+ path: string;
638
+ digest: string;
639
+ }, {
640
+ path: string;
641
+ digest: string;
642
+ }>, "many">>;
643
+ }, "strict", z.ZodTypeAny, {
644
+ run_id: string;
645
+ schema_version: 2;
646
+ task_id: string;
647
+ policy_digest: string;
648
+ source: "osstack_loop_host";
649
+ run_kind: "guarded-local" | "guarded-git";
650
+ contract_digest: string;
651
+ candidate: {
652
+ base_head: string;
653
+ head: string;
654
+ tree_id: string;
655
+ diff_digest: string;
656
+ };
657
+ workspace_state_digest: string;
658
+ checks: {
659
+ id: string;
660
+ registry_ref: string;
661
+ command_digest: string;
662
+ exit_code: number;
663
+ duration_ms: number;
664
+ }[];
665
+ review: {
666
+ policy_ref: string;
667
+ verdict: "approved" | "blocked" | "changes_requested" | "inconclusive";
668
+ builder_agent_id: string;
669
+ reviewer_agent_id: string;
670
+ builder_provider: string;
671
+ builder_model: string;
672
+ reviewer_provider: string;
673
+ reviewer_model: string;
674
+ identity_source: "reported";
675
+ artifact_digest: string;
676
+ };
677
+ observed_at: string;
678
+ context_receipt_refs: {
679
+ path: string;
680
+ digest: string;
681
+ }[];
682
+ }, {
683
+ run_id: string;
684
+ schema_version: 2;
685
+ task_id: string;
686
+ policy_digest: string;
687
+ source: "osstack_loop_host";
688
+ run_kind: "guarded-local" | "guarded-git";
689
+ contract_digest: string;
690
+ candidate: {
691
+ base_head: string;
692
+ head: string;
693
+ tree_id: string;
694
+ diff_digest: string;
695
+ };
696
+ workspace_state_digest: string;
697
+ checks: {
698
+ id: string;
699
+ registry_ref: string;
700
+ command_digest: string;
701
+ exit_code: number;
702
+ duration_ms: number;
703
+ }[];
704
+ review: {
705
+ policy_ref: string;
706
+ verdict: "approved" | "blocked" | "changes_requested" | "inconclusive";
707
+ builder_agent_id: string;
708
+ reviewer_agent_id: string;
709
+ builder_provider: string;
710
+ builder_model: string;
711
+ reviewer_provider: string;
712
+ reviewer_model: string;
713
+ identity_source: "reported";
714
+ artifact_digest: string;
715
+ };
716
+ observed_at: string;
717
+ context_receipt_refs?: {
718
+ path: string;
719
+ digest: string;
720
+ }[] | undefined;
721
+ }>;
722
+ export type DeliveryVerificationReceiptV2 = z.infer<typeof DeliveryVerificationReceiptV2>;
723
+ export declare const DeliveryReceiptReferenceV2: z.ZodObject<{
724
+ path: z.ZodString;
725
+ digest: z.ZodString;
726
+ }, "strict", z.ZodTypeAny, {
727
+ path: string;
728
+ digest: string;
729
+ }, {
730
+ path: string;
731
+ digest: string;
732
+ }>;
733
+ export type DeliveryReceiptReferenceV2 = z.infer<typeof DeliveryReceiptReferenceV2>;
734
+ //# sourceMappingURL=delivery-contract.d.ts.map