@openpond/evals 0.1.0 → 0.2.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.
@@ -0,0 +1,873 @@
1
+ import { z } from "zod";
2
+ export declare const WORK_EVIDENCE_SCHEMA_VERSION: "openpond.workEvidenceReceipt.v1";
3
+ export declare const WORK_PROCESS_TRACE_SCHEMA_VERSION: "openpond.workProcessTrace.v1";
4
+ export declare const WORK_FEEDBACK_SCHEMA_VERSION: "openpond.workFeedbackReceipt.v1";
5
+ export declare const WORK_EVIDENCE_ELIGIBILITY_SCHEMA_VERSION: "openpond.workEvidenceEligibility.v1";
6
+ export declare const WorkSourceOpaqueRefSchema: z.ZodString;
7
+ export declare const WorkWorkspaceOpaqueRefSchema: z.ZodString;
8
+ export declare const EvidenceArtifactIdSchema: z.ZodString;
9
+ export declare const EvidenceArtifactRefSchema: z.ZodObject<{
10
+ contentHash: z.ZodString;
11
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
13
+ id: z.ZodString;
14
+ }, z.core.$strict>;
15
+ export declare const WorkProcessStepKindSchema: z.ZodEnum<{
16
+ validation: "validation";
17
+ artifact: "artifact";
18
+ approval: "approval";
19
+ tool: "tool";
20
+ state_transition: "state_transition";
21
+ question: "question";
22
+ cleanup: "cleanup";
23
+ }>;
24
+ export declare const WorkProcessLayerSchema: z.ZodEnum<{
25
+ agent: "agent";
26
+ environment: "environment";
27
+ }>;
28
+ export declare const WorkProcessActionSchema: z.ZodEnum<{
29
+ turn_started: "turn_started";
30
+ turn_completed: "turn_completed";
31
+ turn_failed: "turn_failed";
32
+ turn_cancelled: "turn_cancelled";
33
+ turn_timed_out: "turn_timed_out";
34
+ tool_invoked: "tool_invoked";
35
+ tool_completed: "tool_completed";
36
+ tool_failed: "tool_failed";
37
+ validation_completed: "validation_completed";
38
+ validation_failed: "validation_failed";
39
+ approval_requested: "approval_requested";
40
+ approval_resolved: "approval_resolved";
41
+ question_asked: "question_asked";
42
+ question_answered: "question_answered";
43
+ question_dismissed: "question_dismissed";
44
+ artifact_created: "artifact_created";
45
+ workspace_changed: "workspace_changed";
46
+ environment_created: "environment_created";
47
+ environment_reset: "environment_reset";
48
+ environment_destroyed: "environment_destroyed";
49
+ cleanup_completed: "cleanup_completed";
50
+ cleanup_failed: "cleanup_failed";
51
+ }>;
52
+ export declare const WorkProcessStepStatusSchema: z.ZodEnum<{
53
+ cancelled: "cancelled";
54
+ failed: "failed";
55
+ started: "started";
56
+ completed: "completed";
57
+ }>;
58
+ export declare const WorkToolCategorySchema: z.ZodEnum<{
59
+ agent: "agent";
60
+ filesystem: "filesystem";
61
+ source_control: "source_control";
62
+ command: "command";
63
+ browser: "browser";
64
+ connected_app: "connected_app";
65
+ sandbox: "sandbox";
66
+ other: "other";
67
+ }>;
68
+ export declare const WorkValidationKindSchema: z.ZodEnum<{
69
+ test: "test";
70
+ other: "other";
71
+ structural: "structural";
72
+ visual: "visual";
73
+ user_review: "user_review";
74
+ }>;
75
+ export declare const WorkTransitionStateSchema: z.ZodEnum<{
76
+ timeout: "timeout";
77
+ cancelled: "cancelled";
78
+ failed: "failed";
79
+ completed: "completed";
80
+ running: "running";
81
+ }>;
82
+ export declare const WorkInterventionOutcomeSchema: z.ZodEnum<{
83
+ requested: "requested";
84
+ approved: "approved";
85
+ denied: "denied";
86
+ answered: "answered";
87
+ dismissed: "dismissed";
88
+ }>;
89
+ export declare const WorkProcessErrorClassSchema: z.ZodEnum<{
90
+ unknown: "unknown";
91
+ policy: "policy";
92
+ timeout: "timeout";
93
+ cancelled: "cancelled";
94
+ validation: "validation";
95
+ environment: "environment";
96
+ infrastructure: "infrastructure";
97
+ }>;
98
+ export declare const WorkTraceIncompleteReasonSchema: z.ZodEnum<{
99
+ missing_start: "missing_start";
100
+ missing_terminal: "missing_terminal";
101
+ source_truncated: "source_truncated";
102
+ unsupported_events_dropped: "unsupported_events_dropped";
103
+ uncorrelated_environment_step: "uncorrelated_environment_step";
104
+ artifact_unavailable: "artifact_unavailable";
105
+ }>;
106
+ export declare const WorkProcessStepSchema: z.ZodObject<{
107
+ sequence: z.ZodNumber;
108
+ timestamp: z.ZodString;
109
+ layer: z.ZodEnum<{
110
+ agent: "agent";
111
+ environment: "environment";
112
+ }>;
113
+ kind: z.ZodEnum<{
114
+ validation: "validation";
115
+ artifact: "artifact";
116
+ approval: "approval";
117
+ tool: "tool";
118
+ state_transition: "state_transition";
119
+ question: "question";
120
+ cleanup: "cleanup";
121
+ }>;
122
+ action: z.ZodEnum<{
123
+ turn_started: "turn_started";
124
+ turn_completed: "turn_completed";
125
+ turn_failed: "turn_failed";
126
+ turn_cancelled: "turn_cancelled";
127
+ turn_timed_out: "turn_timed_out";
128
+ tool_invoked: "tool_invoked";
129
+ tool_completed: "tool_completed";
130
+ tool_failed: "tool_failed";
131
+ validation_completed: "validation_completed";
132
+ validation_failed: "validation_failed";
133
+ approval_requested: "approval_requested";
134
+ approval_resolved: "approval_resolved";
135
+ question_asked: "question_asked";
136
+ question_answered: "question_answered";
137
+ question_dismissed: "question_dismissed";
138
+ artifact_created: "artifact_created";
139
+ workspace_changed: "workspace_changed";
140
+ environment_created: "environment_created";
141
+ environment_reset: "environment_reset";
142
+ environment_destroyed: "environment_destroyed";
143
+ cleanup_completed: "cleanup_completed";
144
+ cleanup_failed: "cleanup_failed";
145
+ }>;
146
+ status: z.ZodEnum<{
147
+ cancelled: "cancelled";
148
+ failed: "failed";
149
+ started: "started";
150
+ completed: "completed";
151
+ }>;
152
+ inputHash: z.ZodNullable<z.ZodString>;
153
+ outputHash: z.ZodNullable<z.ZodString>;
154
+ receiptHash: z.ZodNullable<z.ZodString>;
155
+ parentReceiptHash: z.ZodNullable<z.ZodString>;
156
+ artifactRefs: z.ZodArray<z.ZodObject<{
157
+ contentHash: z.ZodString;
158
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
159
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
160
+ id: z.ZodString;
161
+ }, z.core.$strict>>;
162
+ attributes: z.ZodObject<{
163
+ toolCategory: z.ZodNullable<z.ZodEnum<{
164
+ agent: "agent";
165
+ filesystem: "filesystem";
166
+ source_control: "source_control";
167
+ command: "command";
168
+ browser: "browser";
169
+ connected_app: "connected_app";
170
+ sandbox: "sandbox";
171
+ other: "other";
172
+ }>>;
173
+ validationKind: z.ZodNullable<z.ZodEnum<{
174
+ test: "test";
175
+ other: "other";
176
+ structural: "structural";
177
+ visual: "visual";
178
+ user_review: "user_review";
179
+ }>>;
180
+ transitionState: z.ZodNullable<z.ZodEnum<{
181
+ timeout: "timeout";
182
+ cancelled: "cancelled";
183
+ failed: "failed";
184
+ completed: "completed";
185
+ running: "running";
186
+ }>>;
187
+ interventionOutcome: z.ZodNullable<z.ZodEnum<{
188
+ requested: "requested";
189
+ approved: "approved";
190
+ denied: "denied";
191
+ answered: "answered";
192
+ dismissed: "dismissed";
193
+ }>>;
194
+ artifactCount: z.ZodNumber;
195
+ exitCode: z.ZodNullable<z.ZodNumber>;
196
+ durationMs: z.ZodNullable<z.ZodNumber>;
197
+ cpuTimeMs: z.ZodNullable<z.ZodNumber>;
198
+ memoryPeakBytes: z.ZodNullable<z.ZodNumber>;
199
+ errorClass: z.ZodNullable<z.ZodEnum<{
200
+ unknown: "unknown";
201
+ policy: "policy";
202
+ timeout: "timeout";
203
+ cancelled: "cancelled";
204
+ validation: "validation";
205
+ environment: "environment";
206
+ infrastructure: "infrastructure";
207
+ }>>;
208
+ }, z.core.$strict>;
209
+ }, z.core.$strict>;
210
+ export declare const WorkProcessTraceContentSchema: z.ZodObject<{
211
+ schemaVersion: z.ZodLiteral<"openpond.workProcessTrace.v1">;
212
+ sourceRevisionHash: z.ZodString;
213
+ sanitationPolicyVersion: z.ZodString;
214
+ incomplete: z.ZodBoolean;
215
+ incompleteReasons: z.ZodArray<z.ZodEnum<{
216
+ missing_start: "missing_start";
217
+ missing_terminal: "missing_terminal";
218
+ source_truncated: "source_truncated";
219
+ unsupported_events_dropped: "unsupported_events_dropped";
220
+ uncorrelated_environment_step: "uncorrelated_environment_step";
221
+ artifact_unavailable: "artifact_unavailable";
222
+ }>>;
223
+ droppedEventCount: z.ZodNumber;
224
+ steps: z.ZodArray<z.ZodObject<{
225
+ sequence: z.ZodNumber;
226
+ timestamp: z.ZodString;
227
+ layer: z.ZodEnum<{
228
+ agent: "agent";
229
+ environment: "environment";
230
+ }>;
231
+ kind: z.ZodEnum<{
232
+ validation: "validation";
233
+ artifact: "artifact";
234
+ approval: "approval";
235
+ tool: "tool";
236
+ state_transition: "state_transition";
237
+ question: "question";
238
+ cleanup: "cleanup";
239
+ }>;
240
+ action: z.ZodEnum<{
241
+ turn_started: "turn_started";
242
+ turn_completed: "turn_completed";
243
+ turn_failed: "turn_failed";
244
+ turn_cancelled: "turn_cancelled";
245
+ turn_timed_out: "turn_timed_out";
246
+ tool_invoked: "tool_invoked";
247
+ tool_completed: "tool_completed";
248
+ tool_failed: "tool_failed";
249
+ validation_completed: "validation_completed";
250
+ validation_failed: "validation_failed";
251
+ approval_requested: "approval_requested";
252
+ approval_resolved: "approval_resolved";
253
+ question_asked: "question_asked";
254
+ question_answered: "question_answered";
255
+ question_dismissed: "question_dismissed";
256
+ artifact_created: "artifact_created";
257
+ workspace_changed: "workspace_changed";
258
+ environment_created: "environment_created";
259
+ environment_reset: "environment_reset";
260
+ environment_destroyed: "environment_destroyed";
261
+ cleanup_completed: "cleanup_completed";
262
+ cleanup_failed: "cleanup_failed";
263
+ }>;
264
+ status: z.ZodEnum<{
265
+ cancelled: "cancelled";
266
+ failed: "failed";
267
+ started: "started";
268
+ completed: "completed";
269
+ }>;
270
+ inputHash: z.ZodNullable<z.ZodString>;
271
+ outputHash: z.ZodNullable<z.ZodString>;
272
+ receiptHash: z.ZodNullable<z.ZodString>;
273
+ parentReceiptHash: z.ZodNullable<z.ZodString>;
274
+ artifactRefs: z.ZodArray<z.ZodObject<{
275
+ contentHash: z.ZodString;
276
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
277
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
278
+ id: z.ZodString;
279
+ }, z.core.$strict>>;
280
+ attributes: z.ZodObject<{
281
+ toolCategory: z.ZodNullable<z.ZodEnum<{
282
+ agent: "agent";
283
+ filesystem: "filesystem";
284
+ source_control: "source_control";
285
+ command: "command";
286
+ browser: "browser";
287
+ connected_app: "connected_app";
288
+ sandbox: "sandbox";
289
+ other: "other";
290
+ }>>;
291
+ validationKind: z.ZodNullable<z.ZodEnum<{
292
+ test: "test";
293
+ other: "other";
294
+ structural: "structural";
295
+ visual: "visual";
296
+ user_review: "user_review";
297
+ }>>;
298
+ transitionState: z.ZodNullable<z.ZodEnum<{
299
+ timeout: "timeout";
300
+ cancelled: "cancelled";
301
+ failed: "failed";
302
+ completed: "completed";
303
+ running: "running";
304
+ }>>;
305
+ interventionOutcome: z.ZodNullable<z.ZodEnum<{
306
+ requested: "requested";
307
+ approved: "approved";
308
+ denied: "denied";
309
+ answered: "answered";
310
+ dismissed: "dismissed";
311
+ }>>;
312
+ artifactCount: z.ZodNumber;
313
+ exitCode: z.ZodNullable<z.ZodNumber>;
314
+ durationMs: z.ZodNullable<z.ZodNumber>;
315
+ cpuTimeMs: z.ZodNullable<z.ZodNumber>;
316
+ memoryPeakBytes: z.ZodNullable<z.ZodNumber>;
317
+ errorClass: z.ZodNullable<z.ZodEnum<{
318
+ unknown: "unknown";
319
+ policy: "policy";
320
+ timeout: "timeout";
321
+ cancelled: "cancelled";
322
+ validation: "validation";
323
+ environment: "environment";
324
+ infrastructure: "infrastructure";
325
+ }>>;
326
+ }, z.core.$strict>;
327
+ }, z.core.$strict>>;
328
+ }, z.core.$strict>;
329
+ export declare const WorkProcessTraceSchema: z.ZodObject<{
330
+ schemaVersion: z.ZodLiteral<"openpond.workProcessTrace.v1">;
331
+ sourceRevisionHash: z.ZodString;
332
+ sanitationPolicyVersion: z.ZodString;
333
+ incomplete: z.ZodBoolean;
334
+ incompleteReasons: z.ZodArray<z.ZodEnum<{
335
+ missing_start: "missing_start";
336
+ missing_terminal: "missing_terminal";
337
+ source_truncated: "source_truncated";
338
+ unsupported_events_dropped: "unsupported_events_dropped";
339
+ uncorrelated_environment_step: "uncorrelated_environment_step";
340
+ artifact_unavailable: "artifact_unavailable";
341
+ }>>;
342
+ droppedEventCount: z.ZodNumber;
343
+ steps: z.ZodArray<z.ZodObject<{
344
+ sequence: z.ZodNumber;
345
+ timestamp: z.ZodString;
346
+ layer: z.ZodEnum<{
347
+ agent: "agent";
348
+ environment: "environment";
349
+ }>;
350
+ kind: z.ZodEnum<{
351
+ validation: "validation";
352
+ artifact: "artifact";
353
+ approval: "approval";
354
+ tool: "tool";
355
+ state_transition: "state_transition";
356
+ question: "question";
357
+ cleanup: "cleanup";
358
+ }>;
359
+ action: z.ZodEnum<{
360
+ turn_started: "turn_started";
361
+ turn_completed: "turn_completed";
362
+ turn_failed: "turn_failed";
363
+ turn_cancelled: "turn_cancelled";
364
+ turn_timed_out: "turn_timed_out";
365
+ tool_invoked: "tool_invoked";
366
+ tool_completed: "tool_completed";
367
+ tool_failed: "tool_failed";
368
+ validation_completed: "validation_completed";
369
+ validation_failed: "validation_failed";
370
+ approval_requested: "approval_requested";
371
+ approval_resolved: "approval_resolved";
372
+ question_asked: "question_asked";
373
+ question_answered: "question_answered";
374
+ question_dismissed: "question_dismissed";
375
+ artifact_created: "artifact_created";
376
+ workspace_changed: "workspace_changed";
377
+ environment_created: "environment_created";
378
+ environment_reset: "environment_reset";
379
+ environment_destroyed: "environment_destroyed";
380
+ cleanup_completed: "cleanup_completed";
381
+ cleanup_failed: "cleanup_failed";
382
+ }>;
383
+ status: z.ZodEnum<{
384
+ cancelled: "cancelled";
385
+ failed: "failed";
386
+ started: "started";
387
+ completed: "completed";
388
+ }>;
389
+ inputHash: z.ZodNullable<z.ZodString>;
390
+ outputHash: z.ZodNullable<z.ZodString>;
391
+ receiptHash: z.ZodNullable<z.ZodString>;
392
+ parentReceiptHash: z.ZodNullable<z.ZodString>;
393
+ artifactRefs: z.ZodArray<z.ZodObject<{
394
+ contentHash: z.ZodString;
395
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
396
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
397
+ id: z.ZodString;
398
+ }, z.core.$strict>>;
399
+ attributes: z.ZodObject<{
400
+ toolCategory: z.ZodNullable<z.ZodEnum<{
401
+ agent: "agent";
402
+ filesystem: "filesystem";
403
+ source_control: "source_control";
404
+ command: "command";
405
+ browser: "browser";
406
+ connected_app: "connected_app";
407
+ sandbox: "sandbox";
408
+ other: "other";
409
+ }>>;
410
+ validationKind: z.ZodNullable<z.ZodEnum<{
411
+ test: "test";
412
+ other: "other";
413
+ structural: "structural";
414
+ visual: "visual";
415
+ user_review: "user_review";
416
+ }>>;
417
+ transitionState: z.ZodNullable<z.ZodEnum<{
418
+ timeout: "timeout";
419
+ cancelled: "cancelled";
420
+ failed: "failed";
421
+ completed: "completed";
422
+ running: "running";
423
+ }>>;
424
+ interventionOutcome: z.ZodNullable<z.ZodEnum<{
425
+ requested: "requested";
426
+ approved: "approved";
427
+ denied: "denied";
428
+ answered: "answered";
429
+ dismissed: "dismissed";
430
+ }>>;
431
+ artifactCount: z.ZodNumber;
432
+ exitCode: z.ZodNullable<z.ZodNumber>;
433
+ durationMs: z.ZodNullable<z.ZodNumber>;
434
+ cpuTimeMs: z.ZodNullable<z.ZodNumber>;
435
+ memoryPeakBytes: z.ZodNullable<z.ZodNumber>;
436
+ errorClass: z.ZodNullable<z.ZodEnum<{
437
+ unknown: "unknown";
438
+ policy: "policy";
439
+ timeout: "timeout";
440
+ cancelled: "cancelled";
441
+ validation: "validation";
442
+ environment: "environment";
443
+ infrastructure: "infrastructure";
444
+ }>>;
445
+ }, z.core.$strict>;
446
+ }, z.core.$strict>>;
447
+ contentHash: z.ZodString;
448
+ }, z.core.$strict>;
449
+ export declare const WorkFailureClassSchema: z.ZodEnum<{
450
+ unknown: "unknown";
451
+ policy_failure: "policy_failure";
452
+ environment_failure: "environment_failure";
453
+ infrastructure_failure: "infrastructure_failure";
454
+ timeout: "timeout";
455
+ cancelled: "cancelled";
456
+ validation_failure: "validation_failure";
457
+ model_failure: "model_failure";
458
+ }>;
459
+ export declare const WorkTerminalSchema: z.ZodObject<{
460
+ status: z.ZodEnum<{
461
+ timeout: "timeout";
462
+ cancelled: "cancelled";
463
+ failed: "failed";
464
+ completed: "completed";
465
+ }>;
466
+ failureClass: z.ZodNullable<z.ZodEnum<{
467
+ unknown: "unknown";
468
+ policy_failure: "policy_failure";
469
+ environment_failure: "environment_failure";
470
+ infrastructure_failure: "infrastructure_failure";
471
+ timeout: "timeout";
472
+ cancelled: "cancelled";
473
+ validation_failure: "validation_failure";
474
+ model_failure: "model_failure";
475
+ }>>;
476
+ }, z.core.$strict>;
477
+ export declare const WorkEvidenceReceiptContentSchema: z.ZodObject<{
478
+ schemaVersion: z.ZodLiteral<"openpond.workEvidenceReceipt.v1">;
479
+ id: z.ZodString;
480
+ source: z.ZodObject<{
481
+ surface: z.ZodEnum<{
482
+ desktop: "desktop";
483
+ hosted: "hosted";
484
+ }>;
485
+ experience: z.ZodEnum<{
486
+ work: "work";
487
+ development: "development";
488
+ }>;
489
+ opaqueRef: z.ZodString;
490
+ revisionHash: z.ZodString;
491
+ }, z.core.$strict>;
492
+ agentSnapshot: z.ZodNullable<z.ZodObject<{
493
+ id: z.ZodString;
494
+ contentHash: z.ZodString;
495
+ }, z.core.$strict>>;
496
+ model: z.ZodObject<{
497
+ provider: z.ZodString;
498
+ model: z.ZodString;
499
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
500
+ artifactHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
501
+ tokenizerRevision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
502
+ chatTemplateHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
503
+ }, z.core.$strict>;
504
+ runtime: z.ZodObject<{
505
+ adapterId: z.ZodString;
506
+ adapterVersion: z.ZodString;
507
+ capabilityRef: z.ZodNullable<z.ZodObject<{
508
+ contentHash: z.ZodString;
509
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
510
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
511
+ id: z.ZodString;
512
+ }, z.core.$strict>>;
513
+ }, z.core.$strict>;
514
+ inputHash: z.ZodString;
515
+ terminal: z.ZodObject<{
516
+ status: z.ZodEnum<{
517
+ timeout: "timeout";
518
+ cancelled: "cancelled";
519
+ failed: "failed";
520
+ completed: "completed";
521
+ }>;
522
+ failureClass: z.ZodNullable<z.ZodEnum<{
523
+ unknown: "unknown";
524
+ policy_failure: "policy_failure";
525
+ environment_failure: "environment_failure";
526
+ infrastructure_failure: "infrastructure_failure";
527
+ timeout: "timeout";
528
+ cancelled: "cancelled";
529
+ validation_failure: "validation_failure";
530
+ model_failure: "model_failure";
531
+ }>>;
532
+ }, z.core.$strict>;
533
+ trace: z.ZodObject<{
534
+ sanitizedRef: z.ZodObject<{
535
+ contentHash: z.ZodString;
536
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
537
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
538
+ id: z.ZodString;
539
+ }, z.core.$strict>;
540
+ traceHash: z.ZodString;
541
+ sanitationPolicyVersion: z.ZodString;
542
+ incomplete: z.ZodBoolean;
543
+ }, z.core.$strict>;
544
+ outputRefs: z.ZodArray<z.ZodObject<{
545
+ contentHash: z.ZodString;
546
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
547
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
548
+ id: z.ZodString;
549
+ }, z.core.$strict>>;
550
+ artifactRefs: z.ZodArray<z.ZodObject<{
551
+ contentHash: z.ZodString;
552
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
553
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
554
+ id: z.ZodString;
555
+ }, z.core.$strict>>;
556
+ validationEvidenceRefs: z.ZodArray<z.ZodObject<{
557
+ contentHash: z.ZodString;
558
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
559
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
560
+ id: z.ZodString;
561
+ }, z.core.$strict>>;
562
+ interventions: z.ZodObject<{
563
+ approvals: z.ZodNumber;
564
+ questions: z.ZodNumber;
565
+ steeringEvents: z.ZodNumber;
566
+ otherUserInterventions: z.ZodNumber;
567
+ }, z.core.$strict>;
568
+ timing: z.ZodObject<{
569
+ startedAt: z.ZodString;
570
+ completedAt: z.ZodString;
571
+ latencyMs: z.ZodNumber;
572
+ }, z.core.$strict>;
573
+ usage: z.ZodObject<{
574
+ promptTokens: z.ZodNullable<z.ZodNumber>;
575
+ completionTokens: z.ZodNullable<z.ZodNumber>;
576
+ totalTokens: z.ZodNullable<z.ZodNumber>;
577
+ }, z.core.$strict>;
578
+ costUsd: z.ZodNullable<z.ZodNumber>;
579
+ provenance: z.ZodObject<{
580
+ consentReceiptRef: z.ZodObject<{
581
+ contentHash: z.ZodString;
582
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
583
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
584
+ id: z.ZodString;
585
+ }, z.core.$strict>;
586
+ consentScope: z.ZodLiteral<"work_process_and_artifacts">;
587
+ consentGrantedAt: z.ZodString;
588
+ policyVersion: z.ZodString;
589
+ projectorVersion: z.ZodString;
590
+ disclosure: z.ZodLiteral<"portable_sanitized">;
591
+ ownershipScope: z.ZodEnum<{
592
+ personal: "personal";
593
+ workspace: "workspace";
594
+ }>;
595
+ workspaceRef: z.ZodNullable<z.ZodString>;
596
+ participantPolicy: z.ZodEnum<{
597
+ creator_only: "creator_only";
598
+ all_participants: "all_participants";
599
+ }>;
600
+ retention: z.ZodObject<{
601
+ policy: z.ZodLiteral<"source_bound">;
602
+ deleteWithSource: z.ZodLiteral<true>;
603
+ expiresAt: z.ZodNullable<z.ZodString>;
604
+ }, z.core.$strict>;
605
+ }, z.core.$strict>;
606
+ }, z.core.$strict>;
607
+ export declare const WorkEvidenceReceiptSchema: z.ZodObject<{
608
+ schemaVersion: z.ZodLiteral<"openpond.workEvidenceReceipt.v1">;
609
+ id: z.ZodString;
610
+ source: z.ZodObject<{
611
+ surface: z.ZodEnum<{
612
+ desktop: "desktop";
613
+ hosted: "hosted";
614
+ }>;
615
+ experience: z.ZodEnum<{
616
+ work: "work";
617
+ development: "development";
618
+ }>;
619
+ opaqueRef: z.ZodString;
620
+ revisionHash: z.ZodString;
621
+ }, z.core.$strict>;
622
+ agentSnapshot: z.ZodNullable<z.ZodObject<{
623
+ id: z.ZodString;
624
+ contentHash: z.ZodString;
625
+ }, z.core.$strict>>;
626
+ model: z.ZodObject<{
627
+ provider: z.ZodString;
628
+ model: z.ZodString;
629
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
630
+ artifactHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
631
+ tokenizerRevision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
632
+ chatTemplateHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
633
+ }, z.core.$strict>;
634
+ runtime: z.ZodObject<{
635
+ adapterId: z.ZodString;
636
+ adapterVersion: z.ZodString;
637
+ capabilityRef: z.ZodNullable<z.ZodObject<{
638
+ contentHash: z.ZodString;
639
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
640
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
641
+ id: z.ZodString;
642
+ }, z.core.$strict>>;
643
+ }, z.core.$strict>;
644
+ inputHash: z.ZodString;
645
+ terminal: z.ZodObject<{
646
+ status: z.ZodEnum<{
647
+ timeout: "timeout";
648
+ cancelled: "cancelled";
649
+ failed: "failed";
650
+ completed: "completed";
651
+ }>;
652
+ failureClass: z.ZodNullable<z.ZodEnum<{
653
+ unknown: "unknown";
654
+ policy_failure: "policy_failure";
655
+ environment_failure: "environment_failure";
656
+ infrastructure_failure: "infrastructure_failure";
657
+ timeout: "timeout";
658
+ cancelled: "cancelled";
659
+ validation_failure: "validation_failure";
660
+ model_failure: "model_failure";
661
+ }>>;
662
+ }, z.core.$strict>;
663
+ trace: z.ZodObject<{
664
+ sanitizedRef: z.ZodObject<{
665
+ contentHash: z.ZodString;
666
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
667
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
668
+ id: z.ZodString;
669
+ }, z.core.$strict>;
670
+ traceHash: z.ZodString;
671
+ sanitationPolicyVersion: z.ZodString;
672
+ incomplete: z.ZodBoolean;
673
+ }, z.core.$strict>;
674
+ outputRefs: z.ZodArray<z.ZodObject<{
675
+ contentHash: z.ZodString;
676
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
677
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
678
+ id: z.ZodString;
679
+ }, z.core.$strict>>;
680
+ artifactRefs: z.ZodArray<z.ZodObject<{
681
+ contentHash: z.ZodString;
682
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
683
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
684
+ id: z.ZodString;
685
+ }, z.core.$strict>>;
686
+ validationEvidenceRefs: z.ZodArray<z.ZodObject<{
687
+ contentHash: z.ZodString;
688
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
689
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
690
+ id: z.ZodString;
691
+ }, z.core.$strict>>;
692
+ interventions: z.ZodObject<{
693
+ approvals: z.ZodNumber;
694
+ questions: z.ZodNumber;
695
+ steeringEvents: z.ZodNumber;
696
+ otherUserInterventions: z.ZodNumber;
697
+ }, z.core.$strict>;
698
+ timing: z.ZodObject<{
699
+ startedAt: z.ZodString;
700
+ completedAt: z.ZodString;
701
+ latencyMs: z.ZodNumber;
702
+ }, z.core.$strict>;
703
+ usage: z.ZodObject<{
704
+ promptTokens: z.ZodNullable<z.ZodNumber>;
705
+ completionTokens: z.ZodNullable<z.ZodNumber>;
706
+ totalTokens: z.ZodNullable<z.ZodNumber>;
707
+ }, z.core.$strict>;
708
+ costUsd: z.ZodNullable<z.ZodNumber>;
709
+ provenance: z.ZodObject<{
710
+ consentReceiptRef: z.ZodObject<{
711
+ contentHash: z.ZodString;
712
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
713
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
714
+ id: z.ZodString;
715
+ }, z.core.$strict>;
716
+ consentScope: z.ZodLiteral<"work_process_and_artifacts">;
717
+ consentGrantedAt: z.ZodString;
718
+ policyVersion: z.ZodString;
719
+ projectorVersion: z.ZodString;
720
+ disclosure: z.ZodLiteral<"portable_sanitized">;
721
+ ownershipScope: z.ZodEnum<{
722
+ personal: "personal";
723
+ workspace: "workspace";
724
+ }>;
725
+ workspaceRef: z.ZodNullable<z.ZodString>;
726
+ participantPolicy: z.ZodEnum<{
727
+ creator_only: "creator_only";
728
+ all_participants: "all_participants";
729
+ }>;
730
+ retention: z.ZodObject<{
731
+ policy: z.ZodLiteral<"source_bound">;
732
+ deleteWithSource: z.ZodLiteral<true>;
733
+ expiresAt: z.ZodNullable<z.ZodString>;
734
+ }, z.core.$strict>;
735
+ }, z.core.$strict>;
736
+ contentHash: z.ZodString;
737
+ }, z.core.$strict>;
738
+ export declare const WorkFeedbackVerdictSchema: z.ZodEnum<{
739
+ accepted: "accepted";
740
+ needs_correction: "needs_correction";
741
+ not_useful: "not_useful";
742
+ }>;
743
+ export declare const WorkFeedbackReasonCodeSchema: z.ZodEnum<{
744
+ other: "other";
745
+ incomplete: "incomplete";
746
+ correct: "correct";
747
+ complete: "complete";
748
+ high_quality: "high_quality";
749
+ incorrect: "incorrect";
750
+ wrong_format: "wrong_format";
751
+ unsafe: "unsafe";
752
+ stale: "stale";
753
+ irrelevant: "irrelevant";
754
+ }>;
755
+ export declare const WorkFeedbackReceiptContentSchema: z.ZodObject<{
756
+ schemaVersion: z.ZodLiteral<"openpond.workFeedbackReceipt.v1">;
757
+ id: z.ZodString;
758
+ evidenceReceiptRef: z.ZodObject<{
759
+ contentHash: z.ZodString;
760
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
761
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
762
+ id: z.ZodString;
763
+ }, z.core.$strict>;
764
+ outputRevisionRef: z.ZodNullable<z.ZodObject<{
765
+ contentHash: z.ZodString;
766
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
767
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
768
+ id: z.ZodString;
769
+ }, z.core.$strict>>;
770
+ verdict: z.ZodEnum<{
771
+ accepted: "accepted";
772
+ needs_correction: "needs_correction";
773
+ not_useful: "not_useful";
774
+ }>;
775
+ reasonCodes: z.ZodArray<z.ZodEnum<{
776
+ other: "other";
777
+ incomplete: "incomplete";
778
+ correct: "correct";
779
+ complete: "complete";
780
+ high_quality: "high_quality";
781
+ incorrect: "incorrect";
782
+ wrong_format: "wrong_format";
783
+ unsafe: "unsafe";
784
+ stale: "stale";
785
+ irrelevant: "irrelevant";
786
+ }>>;
787
+ correctionRef: z.ZodNullable<z.ZodObject<{
788
+ contentHash: z.ZodString;
789
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
790
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
791
+ id: z.ZodString;
792
+ }, z.core.$strict>>;
793
+ correctedOutputRevisionRef: z.ZodNullable<z.ZodObject<{
794
+ contentHash: z.ZodString;
795
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
796
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
797
+ id: z.ZodString;
798
+ }, z.core.$strict>>;
799
+ actor: z.ZodLiteral<"user">;
800
+ createdAt: z.ZodString;
801
+ }, z.core.$strict>;
802
+ export declare const WorkFeedbackReceiptSchema: z.ZodObject<{
803
+ schemaVersion: z.ZodLiteral<"openpond.workFeedbackReceipt.v1">;
804
+ id: z.ZodString;
805
+ evidenceReceiptRef: z.ZodObject<{
806
+ contentHash: z.ZodString;
807
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
808
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
809
+ id: z.ZodString;
810
+ }, z.core.$strict>;
811
+ outputRevisionRef: z.ZodNullable<z.ZodObject<{
812
+ contentHash: z.ZodString;
813
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
814
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
815
+ id: z.ZodString;
816
+ }, z.core.$strict>>;
817
+ verdict: z.ZodEnum<{
818
+ accepted: "accepted";
819
+ needs_correction: "needs_correction";
820
+ not_useful: "not_useful";
821
+ }>;
822
+ reasonCodes: z.ZodArray<z.ZodEnum<{
823
+ other: "other";
824
+ incomplete: "incomplete";
825
+ correct: "correct";
826
+ complete: "complete";
827
+ high_quality: "high_quality";
828
+ incorrect: "incorrect";
829
+ wrong_format: "wrong_format";
830
+ unsafe: "unsafe";
831
+ stale: "stale";
832
+ irrelevant: "irrelevant";
833
+ }>>;
834
+ correctionRef: z.ZodNullable<z.ZodObject<{
835
+ contentHash: z.ZodString;
836
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
837
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
838
+ id: z.ZodString;
839
+ }, z.core.$strict>>;
840
+ correctedOutputRevisionRef: z.ZodNullable<z.ZodObject<{
841
+ contentHash: z.ZodString;
842
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
843
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
844
+ id: z.ZodString;
845
+ }, z.core.$strict>>;
846
+ actor: z.ZodLiteral<"user">;
847
+ createdAt: z.ZodString;
848
+ contentHash: z.ZodString;
849
+ }, z.core.$strict>;
850
+ export declare function evidenceArtifactId(hash: string): string;
851
+ export declare function workSourceOpaqueRef(sourceIdentity: unknown): string;
852
+ export declare function workWorkspaceOpaqueRef(workspaceIdentity: unknown): string;
853
+ export declare function evidenceArtifactRef(input: {
854
+ contentHash: string;
855
+ mediaType?: string | null;
856
+ sizeBytes?: number | null;
857
+ }): EvidenceArtifactRef;
858
+ export declare function createWorkProcessTrace(input: z.input<typeof WorkProcessTraceContentSchema>): WorkProcessTrace;
859
+ export declare function createWorkEvidenceReceipt(input: z.input<typeof WorkEvidenceReceiptContentSchema>): WorkEvidenceReceipt;
860
+ export declare function createWorkFeedbackReceipt(input: z.input<typeof WorkFeedbackReceiptContentSchema>, evidence?: WorkEvidenceReceipt): WorkFeedbackReceipt;
861
+ export declare function verifyWorkProcessTrace(value: unknown): value is WorkProcessTrace;
862
+ export declare function verifyWorkEvidenceReceipt(value: unknown): value is WorkEvidenceReceipt;
863
+ export declare function verifyWorkFeedbackReceipt(value: unknown): value is WorkFeedbackReceipt;
864
+ export declare function workEvidenceReceiptRef(receipt: WorkEvidenceReceipt): EvidenceArtifactRef;
865
+ export declare function assertFeedbackTargetsEvidence(feedback: WorkFeedbackReceipt, evidence: WorkEvidenceReceipt): void;
866
+ export type EvidenceArtifactRef = z.infer<typeof EvidenceArtifactRefSchema>;
867
+ export type WorkProcessStep = z.infer<typeof WorkProcessStepSchema>;
868
+ export type WorkProcessTrace = z.infer<typeof WorkProcessTraceSchema>;
869
+ export type WorkEvidenceReceipt = z.infer<typeof WorkEvidenceReceiptSchema>;
870
+ export type WorkFeedbackReceipt = z.infer<typeof WorkFeedbackReceiptSchema>;
871
+ export type WorkFeedbackVerdict = z.infer<typeof WorkFeedbackVerdictSchema>;
872
+ export type WorkFeedbackReasonCode = z.infer<typeof WorkFeedbackReasonCodeSchema>;
873
+ //# sourceMappingURL=contracts.d.ts.map