@openpond/evals 0.5.0 → 0.7.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 (118) hide show
  1. package/CONTRACT.md +13 -1
  2. package/LEARNING.md +106 -0
  3. package/README.md +28 -2
  4. package/conformance/telemetry/v1/invalid-batch.json +17 -0
  5. package/conformance/telemetry/v1/valid-batch.json +58 -0
  6. package/dist/graders.js +26 -5
  7. package/dist/index.js +8 -0
  8. package/dist/javascript-verifier-contract.js +7 -0
  9. package/dist/javascript-verifier-node.js +56 -0
  10. package/dist/javascript-verifier-worker-source.js +1 -0
  11. package/dist/javascript-verifier-worker.js +6 -0
  12. package/dist/javascript-verifier.js +64 -0
  13. package/dist/learned-preference.js +334 -0
  14. package/dist/learning/admission.js +209 -0
  15. package/dist/learning/assets.js +37 -0
  16. package/dist/learning/contracts.js +267 -0
  17. package/dist/learning/errors.js +12 -0
  18. package/dist/learning/grade-worker.js +99 -0
  19. package/dist/learning/index.js +9 -0
  20. package/dist/learning/operations.js +33 -0
  21. package/dist/learning/repository.js +48 -0
  22. package/dist/learning/service.js +367 -0
  23. package/dist/learning/transport.js +25 -0
  24. package/dist/preferences.js +77 -11
  25. package/dist/rewards.js +230 -0
  26. package/dist/task-schema.js +142 -0
  27. package/dist/tasksets.js +3 -0
  28. package/dist/telemetry/index.js +4 -0
  29. package/dist/telemetry-analysis.js +183 -0
  30. package/dist/telemetry-bundle.js +60 -0
  31. package/dist/telemetry-catalog.js +50 -0
  32. package/dist/telemetry.js +112 -0
  33. package/dist/types/builtin-benchmarks/harness-refiner.d.ts +7 -0
  34. package/dist/types/builtin-benchmarks/harness-refiner.d.ts.map +1 -1
  35. package/dist/types/conformance.d.ts +14 -0
  36. package/dist/types/conformance.d.ts.map +1 -1
  37. package/dist/types/execution-contracts.d.ts +14 -0
  38. package/dist/types/execution-contracts.d.ts.map +1 -1
  39. package/dist/types/graders.d.ts.map +1 -1
  40. package/dist/types/index.d.ts +8 -0
  41. package/dist/types/index.d.ts.map +1 -1
  42. package/dist/types/javascript-verifier-contract.d.ts +9 -0
  43. package/dist/types/javascript-verifier-contract.d.ts.map +1 -0
  44. package/dist/types/javascript-verifier-node.d.ts +5 -0
  45. package/dist/types/javascript-verifier-node.d.ts.map +1 -0
  46. package/dist/types/javascript-verifier-worker-source.d.ts +2 -0
  47. package/dist/types/javascript-verifier-worker.d.ts +2 -0
  48. package/dist/types/javascript-verifier-worker.d.ts.map +1 -0
  49. package/dist/types/javascript-verifier.d.ts +15 -0
  50. package/dist/types/javascript-verifier.d.ts.map +1 -0
  51. package/dist/types/learned-preference.d.ts +282 -0
  52. package/dist/types/learned-preference.d.ts.map +1 -0
  53. package/dist/types/learning/admission.d.ts +335 -0
  54. package/dist/types/learning/admission.d.ts.map +1 -0
  55. package/dist/types/learning/assets.d.ts +49 -0
  56. package/dist/types/learning/assets.d.ts.map +1 -0
  57. package/dist/types/learning/contracts.d.ts +2149 -0
  58. package/dist/types/learning/contracts.d.ts.map +1 -0
  59. package/dist/types/learning/errors.d.ts +8 -0
  60. package/dist/types/learning/errors.d.ts.map +1 -0
  61. package/dist/types/learning/grade-worker.d.ts +31 -0
  62. package/dist/types/learning/grade-worker.d.ts.map +1 -0
  63. package/dist/types/learning/index.d.ts +10 -0
  64. package/dist/types/learning/index.d.ts.map +1 -0
  65. package/dist/types/learning/operations.d.ts +2061 -0
  66. package/dist/types/learning/operations.d.ts.map +1 -0
  67. package/dist/types/learning/repository.d.ts +1143 -0
  68. package/dist/types/learning/repository.d.ts.map +1 -0
  69. package/dist/types/learning/service.d.ts +22 -0
  70. package/dist/types/learning/service.d.ts.map +1 -0
  71. package/dist/types/learning/transport.d.ts +2139 -0
  72. package/dist/types/learning/transport.d.ts.map +1 -0
  73. package/dist/types/preferences.d.ts +55 -7
  74. package/dist/types/preferences.d.ts.map +1 -1
  75. package/dist/types/review-conformance.d.ts +5 -5
  76. package/dist/types/rewards.d.ts +611 -0
  77. package/dist/types/rewards.d.ts.map +1 -0
  78. package/dist/types/task-schema.d.ts +18 -0
  79. package/dist/types/task-schema.d.ts.map +1 -0
  80. package/dist/types/tasksets.d.ts +28 -0
  81. package/dist/types/tasksets.d.ts.map +1 -1
  82. package/dist/types/telemetry/index.d.ts +5 -0
  83. package/dist/types/telemetry/index.d.ts.map +1 -0
  84. package/dist/types/telemetry-analysis.d.ts +116 -0
  85. package/dist/types/telemetry-analysis.d.ts.map +1 -0
  86. package/dist/types/telemetry-bundle.d.ts +309 -0
  87. package/dist/types/telemetry-bundle.d.ts.map +1 -0
  88. package/dist/types/telemetry-catalog.d.ts +269 -0
  89. package/dist/types/telemetry-catalog.d.ts.map +1 -0
  90. package/dist/types/telemetry.d.ts +266 -0
  91. package/dist/types/telemetry.d.ts.map +1 -0
  92. package/package.json +40 -3
  93. package/schemas/learning/v1/asset.schema.json +89 -0
  94. package/schemas/learning/v1/batch.schema.json +132 -0
  95. package/schemas/learning/v1/binding.schema.json +207 -0
  96. package/schemas/learning/v1/command-request.schema.json +2414 -0
  97. package/schemas/learning/v1/decision.schema.json +440 -0
  98. package/schemas/learning/v1/definition.schema.json +397 -0
  99. package/schemas/learning/v1/evidence.schema.json +317 -0
  100. package/schemas/learning/v1/example-submission.schema.json +253 -0
  101. package/schemas/learning/v1/feedback-submission.schema.json +114 -0
  102. package/schemas/learning/v1/feedback.schema.json +233 -0
  103. package/schemas/learning/v1/grade.schema.json +412 -0
  104. package/schemas/learning/v1/iteration.schema.json +236 -0
  105. package/schemas/learning/v1/package.schema.json +776 -0
  106. package/schemas/learning/v1/policy.schema.json +373 -0
  107. package/schemas/learning/v1/read-request.schema.json +101 -0
  108. package/schemas/learning/v1/reward.schema.json +302 -0
  109. package/schemas/learning/v1/source.schema.json +198 -0
  110. package/schemas/telemetry/v1/evidence-completeness.schema.json +82 -0
  111. package/schemas/telemetry/v1/evidence-reference.schema.json +41 -0
  112. package/schemas/telemetry/v1/metric-definition.schema.json +96 -0
  113. package/schemas/telemetry/v1/metric-observation.schema.json +182 -0
  114. package/schemas/telemetry/v1/run-metric-summary.schema.json +98 -0
  115. package/schemas/telemetry/v1/run-telemetry-batch.schema.json +405 -0
  116. package/schemas/telemetry/v1/run-telemetry-event.schema.json +201 -0
  117. package/schemas/telemetry/v1/telemetry-cohort.schema.json +100 -0
  118. package/schemas/telemetry/v1/telemetry-export-bundle.schema.json +655 -0
@@ -0,0 +1,2149 @@
1
+ import { z } from "zod";
2
+ export declare const LearningJsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3
+ export declare const LearningRevisionRefSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ contentHash: z.ZodString;
6
+ revision: z.ZodNumber;
7
+ }, z.core.$strict>;
8
+ export declare const LearningJsonPointerSchema: z.ZodString;
9
+ export declare const TaskDefinitionContentSchema: z.ZodObject<{
10
+ schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
11
+ id: z.ZodString;
12
+ revision: z.ZodNumber;
13
+ name: z.ZodString;
14
+ description: z.ZodString;
15
+ instructions: z.ZodString;
16
+ category: z.ZodEnum<{
17
+ custom: "custom";
18
+ structured: "structured";
19
+ question_answering: "question_answering";
20
+ coding: "coding";
21
+ tool_workflow: "tool_workflow";
22
+ }>;
23
+ familyNamespace: z.ZodString;
24
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
+ rewardBinding: z.ZodObject<{
27
+ id: z.ZodString;
28
+ contentHash: z.ZodString;
29
+ revision: z.ZodNumber;
30
+ }, z.core.$strict>;
31
+ harness: z.ZodNullable<z.ZodObject<{
32
+ id: z.ZodString;
33
+ contentHash: z.ZodString;
34
+ }, z.core.$strict>>;
35
+ execution: z.ZodObject<{
36
+ policy: z.ZodObject<{
37
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
38
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
39
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
40
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strict>;
42
+ environment: z.ZodObject<{
43
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
44
+ kind: z.ZodEnum<{
45
+ text: "text";
46
+ agent: "agent";
47
+ work: "work";
48
+ custom_program: "custom_program";
49
+ }>;
50
+ entrypoint: z.ZodString;
51
+ stateful: z.ZodBoolean;
52
+ deterministicSeeds: z.ZodBoolean;
53
+ lifecycle: z.ZodArray<z.ZodEnum<{
54
+ create: "create";
55
+ reset: "reset";
56
+ step: "step";
57
+ collect: "collect";
58
+ destroy: "destroy";
59
+ }>>;
60
+ networkPolicy: z.ZodEnum<{
61
+ none: "none";
62
+ declared_read_only: "declared_read_only";
63
+ declared_scoped: "declared_scoped";
64
+ }>;
65
+ defaultTimeoutMs: z.ZodNumber;
66
+ }, z.core.$strict>;
67
+ environmentRelease: z.ZodOptional<z.ZodObject<{
68
+ id: z.ZodString;
69
+ contentHash: z.ZodString;
70
+ }, z.core.$strict>>;
71
+ tools: z.ZodArray<z.ZodObject<{
72
+ name: z.ZodString;
73
+ description: z.ZodString;
74
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
75
+ inputSchemaHash: z.ZodString;
76
+ sideEffect: z.ZodEnum<{
77
+ read: "read";
78
+ write: "write";
79
+ }>;
80
+ timeoutMs: z.ZodNumber;
81
+ }, z.core.$strict>>;
82
+ capabilities: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ required: z.ZodBoolean;
85
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
86
+ portability: z.ZodEnum<{
87
+ portable: "portable";
88
+ host_adapter: "host_adapter";
89
+ local_only: "local_only";
90
+ hosted_only: "hosted_only";
91
+ }>;
92
+ }, z.core.$strict>>;
93
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
94
+ id: z.ZodString;
95
+ contentHash: z.ZodString;
96
+ }, z.core.$strict>>;
97
+ }, z.core.$strict>;
98
+ }, z.core.$strict>;
99
+ export declare const TaskDefinitionSchema: z.ZodObject<{
100
+ schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
101
+ id: z.ZodString;
102
+ revision: z.ZodNumber;
103
+ name: z.ZodString;
104
+ description: z.ZodString;
105
+ instructions: z.ZodString;
106
+ category: z.ZodEnum<{
107
+ custom: "custom";
108
+ structured: "structured";
109
+ question_answering: "question_answering";
110
+ coding: "coding";
111
+ tool_workflow: "tool_workflow";
112
+ }>;
113
+ familyNamespace: z.ZodString;
114
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
115
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
116
+ rewardBinding: z.ZodObject<{
117
+ id: z.ZodString;
118
+ contentHash: z.ZodString;
119
+ revision: z.ZodNumber;
120
+ }, z.core.$strict>;
121
+ harness: z.ZodNullable<z.ZodObject<{
122
+ id: z.ZodString;
123
+ contentHash: z.ZodString;
124
+ }, z.core.$strict>>;
125
+ execution: z.ZodObject<{
126
+ policy: z.ZodObject<{
127
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
128
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
129
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
130
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
131
+ }, z.core.$strict>;
132
+ environment: z.ZodObject<{
133
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
134
+ kind: z.ZodEnum<{
135
+ text: "text";
136
+ agent: "agent";
137
+ work: "work";
138
+ custom_program: "custom_program";
139
+ }>;
140
+ entrypoint: z.ZodString;
141
+ stateful: z.ZodBoolean;
142
+ deterministicSeeds: z.ZodBoolean;
143
+ lifecycle: z.ZodArray<z.ZodEnum<{
144
+ create: "create";
145
+ reset: "reset";
146
+ step: "step";
147
+ collect: "collect";
148
+ destroy: "destroy";
149
+ }>>;
150
+ networkPolicy: z.ZodEnum<{
151
+ none: "none";
152
+ declared_read_only: "declared_read_only";
153
+ declared_scoped: "declared_scoped";
154
+ }>;
155
+ defaultTimeoutMs: z.ZodNumber;
156
+ }, z.core.$strict>;
157
+ environmentRelease: z.ZodOptional<z.ZodObject<{
158
+ id: z.ZodString;
159
+ contentHash: z.ZodString;
160
+ }, z.core.$strict>>;
161
+ tools: z.ZodArray<z.ZodObject<{
162
+ name: z.ZodString;
163
+ description: z.ZodString;
164
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
165
+ inputSchemaHash: z.ZodString;
166
+ sideEffect: z.ZodEnum<{
167
+ read: "read";
168
+ write: "write";
169
+ }>;
170
+ timeoutMs: z.ZodNumber;
171
+ }, z.core.$strict>>;
172
+ capabilities: z.ZodArray<z.ZodObject<{
173
+ id: z.ZodString;
174
+ required: z.ZodBoolean;
175
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
176
+ portability: z.ZodEnum<{
177
+ portable: "portable";
178
+ host_adapter: "host_adapter";
179
+ local_only: "local_only";
180
+ hosted_only: "hosted_only";
181
+ }>;
182
+ }, z.core.$strict>>;
183
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
184
+ id: z.ZodString;
185
+ contentHash: z.ZodString;
186
+ }, z.core.$strict>>;
187
+ }, z.core.$strict>;
188
+ contentHash: z.ZodString;
189
+ }, z.core.$strict>;
190
+ export declare const TaskSourceMappingSchema: z.ZodObject<{
191
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
192
+ exampleId: z.ZodString;
193
+ attemptId: z.ZodString;
194
+ occurredAt: z.ZodString;
195
+ input: z.ZodString;
196
+ observedOutput: z.ZodNullable<z.ZodString>;
197
+ expected: z.ZodNullable<z.ZodString>;
198
+ evaluatorContext: z.ZodNullable<z.ZodString>;
199
+ familyKey: z.ZodString;
200
+ split: z.ZodEnum<{
201
+ train: "train";
202
+ validation: "validation";
203
+ test: "test";
204
+ frozen_eval: "frozen_eval";
205
+ }>;
206
+ }, z.core.$strict>;
207
+ export declare const LearningSourceContentSchema: z.ZodObject<{
208
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
209
+ id: z.ZodString;
210
+ revision: z.ZodNumber;
211
+ name: z.ZodString;
212
+ kind: z.ZodEnum<{
213
+ work: "work";
214
+ provider: "provider";
215
+ direct: "direct";
216
+ benchmark: "benchmark";
217
+ opentelemetry: "opentelemetry";
218
+ }>;
219
+ taskDefinition: z.ZodObject<{
220
+ id: z.ZodString;
221
+ contentHash: z.ZodString;
222
+ revision: z.ZodNumber;
223
+ }, z.core.$strict>;
224
+ enabled: z.ZodBoolean;
225
+ allowedSplits: z.ZodArray<z.ZodEnum<{
226
+ train: "train";
227
+ validation: "validation";
228
+ test: "test";
229
+ frozen_eval: "frozen_eval";
230
+ }>>;
231
+ mapping: z.ZodNullable<z.ZodObject<{
232
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
233
+ exampleId: z.ZodString;
234
+ attemptId: z.ZodString;
235
+ occurredAt: z.ZodString;
236
+ input: z.ZodString;
237
+ observedOutput: z.ZodNullable<z.ZodString>;
238
+ expected: z.ZodNullable<z.ZodString>;
239
+ evaluatorContext: z.ZodNullable<z.ZodString>;
240
+ familyKey: z.ZodString;
241
+ split: z.ZodEnum<{
242
+ train: "train";
243
+ validation: "validation";
244
+ test: "test";
245
+ frozen_eval: "frozen_eval";
246
+ }>;
247
+ }, z.core.$strict>>;
248
+ adapterVersion: z.ZodNullable<z.ZodString>;
249
+ }, z.core.$strict>;
250
+ export declare const LearningSourceSchema: z.ZodObject<{
251
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
252
+ id: z.ZodString;
253
+ revision: z.ZodNumber;
254
+ name: z.ZodString;
255
+ kind: z.ZodEnum<{
256
+ work: "work";
257
+ provider: "provider";
258
+ direct: "direct";
259
+ benchmark: "benchmark";
260
+ opentelemetry: "opentelemetry";
261
+ }>;
262
+ taskDefinition: z.ZodObject<{
263
+ id: z.ZodString;
264
+ contentHash: z.ZodString;
265
+ revision: z.ZodNumber;
266
+ }, z.core.$strict>;
267
+ enabled: z.ZodBoolean;
268
+ allowedSplits: z.ZodArray<z.ZodEnum<{
269
+ train: "train";
270
+ validation: "validation";
271
+ test: "test";
272
+ frozen_eval: "frozen_eval";
273
+ }>>;
274
+ mapping: z.ZodNullable<z.ZodObject<{
275
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
276
+ exampleId: z.ZodString;
277
+ attemptId: z.ZodString;
278
+ occurredAt: z.ZodString;
279
+ input: z.ZodString;
280
+ observedOutput: z.ZodNullable<z.ZodString>;
281
+ expected: z.ZodNullable<z.ZodString>;
282
+ evaluatorContext: z.ZodNullable<z.ZodString>;
283
+ familyKey: z.ZodString;
284
+ split: z.ZodEnum<{
285
+ train: "train";
286
+ validation: "validation";
287
+ test: "test";
288
+ frozen_eval: "frozen_eval";
289
+ }>;
290
+ }, z.core.$strict>>;
291
+ adapterVersion: z.ZodNullable<z.ZodString>;
292
+ contentHash: z.ZodString;
293
+ }, z.core.$strict>;
294
+ export declare const TaskExampleSubmissionSchema: z.ZodObject<{
295
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
296
+ sourceId: z.ZodString;
297
+ idempotencyKey: z.ZodString;
298
+ taskDefinition: z.ZodObject<{
299
+ id: z.ZodString;
300
+ contentHash: z.ZodString;
301
+ revision: z.ZodNumber;
302
+ }, z.core.$strict>;
303
+ exampleId: z.ZodString;
304
+ attemptId: z.ZodString;
305
+ occurredAt: z.ZodString;
306
+ familyKey: z.ZodNullable<z.ZodString>;
307
+ split: z.ZodEnum<{
308
+ train: "train";
309
+ validation: "validation";
310
+ test: "test";
311
+ frozen_eval: "frozen_eval";
312
+ }>;
313
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
314
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
315
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
316
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
317
+ assets: z.ZodArray<z.ZodObject<{
318
+ id: z.ZodString;
319
+ path: z.ZodString;
320
+ contentHash: z.ZodString;
321
+ sizeBytes: z.ZodNumber;
322
+ mediaType: z.ZodString;
323
+ visibility: z.ZodEnum<{
324
+ policy: "policy";
325
+ verifier: "verifier";
326
+ host_private: "host_private";
327
+ }>;
328
+ }, z.core.$strict>>;
329
+ provenance: z.ZodObject<{
330
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
331
+ mappingHash: z.ZodNullable<z.ZodString>;
332
+ }, z.core.$strict>;
333
+ }, z.core.$strict>;
334
+ export declare const TaskEvidenceContentSchema: z.ZodObject<{
335
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
336
+ id: z.ZodString;
337
+ revision: z.ZodNumber;
338
+ source: z.ZodObject<{
339
+ id: z.ZodString;
340
+ contentHash: z.ZodString;
341
+ revision: z.ZodNumber;
342
+ }, z.core.$strict>;
343
+ submission: z.ZodObject<{
344
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
345
+ sourceId: z.ZodString;
346
+ idempotencyKey: z.ZodString;
347
+ taskDefinition: z.ZodObject<{
348
+ id: z.ZodString;
349
+ contentHash: z.ZodString;
350
+ revision: z.ZodNumber;
351
+ }, z.core.$strict>;
352
+ exampleId: z.ZodString;
353
+ attemptId: z.ZodString;
354
+ occurredAt: z.ZodString;
355
+ familyKey: z.ZodNullable<z.ZodString>;
356
+ split: z.ZodEnum<{
357
+ train: "train";
358
+ validation: "validation";
359
+ test: "test";
360
+ frozen_eval: "frozen_eval";
361
+ }>;
362
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
363
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
364
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
365
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
366
+ assets: z.ZodArray<z.ZodObject<{
367
+ id: z.ZodString;
368
+ path: z.ZodString;
369
+ contentHash: z.ZodString;
370
+ sizeBytes: z.ZodNumber;
371
+ mediaType: z.ZodString;
372
+ visibility: z.ZodEnum<{
373
+ policy: "policy";
374
+ verifier: "verifier";
375
+ host_private: "host_private";
376
+ }>;
377
+ }, z.core.$strict>>;
378
+ provenance: z.ZodObject<{
379
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
380
+ mappingHash: z.ZodNullable<z.ZodString>;
381
+ }, z.core.$strict>;
382
+ }, z.core.$strict>;
383
+ supersedes: z.ZodNullable<z.ZodObject<{
384
+ id: z.ZodString;
385
+ contentHash: z.ZodString;
386
+ revision: z.ZodNumber;
387
+ }, z.core.$strict>>;
388
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
389
+ receivedAt: z.ZodString;
390
+ }, z.core.$strict>;
391
+ export declare const TaskEvidenceSchema: z.ZodObject<{
392
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
393
+ id: z.ZodString;
394
+ revision: z.ZodNumber;
395
+ source: z.ZodObject<{
396
+ id: z.ZodString;
397
+ contentHash: z.ZodString;
398
+ revision: z.ZodNumber;
399
+ }, z.core.$strict>;
400
+ submission: z.ZodObject<{
401
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
402
+ sourceId: z.ZodString;
403
+ idempotencyKey: z.ZodString;
404
+ taskDefinition: z.ZodObject<{
405
+ id: z.ZodString;
406
+ contentHash: z.ZodString;
407
+ revision: z.ZodNumber;
408
+ }, z.core.$strict>;
409
+ exampleId: z.ZodString;
410
+ attemptId: z.ZodString;
411
+ occurredAt: z.ZodString;
412
+ familyKey: z.ZodNullable<z.ZodString>;
413
+ split: z.ZodEnum<{
414
+ train: "train";
415
+ validation: "validation";
416
+ test: "test";
417
+ frozen_eval: "frozen_eval";
418
+ }>;
419
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
420
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
421
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
422
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
423
+ assets: z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ path: z.ZodString;
426
+ contentHash: z.ZodString;
427
+ sizeBytes: z.ZodNumber;
428
+ mediaType: z.ZodString;
429
+ visibility: z.ZodEnum<{
430
+ policy: "policy";
431
+ verifier: "verifier";
432
+ host_private: "host_private";
433
+ }>;
434
+ }, z.core.$strict>>;
435
+ provenance: z.ZodObject<{
436
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
437
+ mappingHash: z.ZodNullable<z.ZodString>;
438
+ }, z.core.$strict>;
439
+ }, z.core.$strict>;
440
+ supersedes: z.ZodNullable<z.ZodObject<{
441
+ id: z.ZodString;
442
+ contentHash: z.ZodString;
443
+ revision: z.ZodNumber;
444
+ }, z.core.$strict>>;
445
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
446
+ receivedAt: z.ZodString;
447
+ contentHash: z.ZodString;
448
+ }, z.core.$strict>;
449
+ export declare const TaskFeedbackSubmissionSchema: z.ZodObject<{
450
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedback.v1">;
451
+ sourceId: z.ZodString;
452
+ idempotencyKey: z.ZodString;
453
+ exampleId: z.ZodString;
454
+ attemptId: z.ZodString;
455
+ expectedEvidenceHash: z.ZodNullable<z.ZodString>;
456
+ occurredAt: z.ZodString;
457
+ kind: z.ZodEnum<{
458
+ outcome: "outcome";
459
+ target_correction: "target_correction";
460
+ ground_truth_correction: "ground_truth_correction";
461
+ input_correction: "input_correction";
462
+ family_resolution: "family_resolution";
463
+ }>;
464
+ value: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
465
+ note: z.ZodString;
466
+ }, z.core.$strict>;
467
+ export declare const TaskFeedbackSchema: z.ZodObject<{
468
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedbackRecord.v1">;
469
+ id: z.ZodString;
470
+ submission: z.ZodObject<{
471
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedback.v1">;
472
+ sourceId: z.ZodString;
473
+ idempotencyKey: z.ZodString;
474
+ exampleId: z.ZodString;
475
+ attemptId: z.ZodString;
476
+ expectedEvidenceHash: z.ZodNullable<z.ZodString>;
477
+ occurredAt: z.ZodString;
478
+ kind: z.ZodEnum<{
479
+ outcome: "outcome";
480
+ target_correction: "target_correction";
481
+ ground_truth_correction: "ground_truth_correction";
482
+ input_correction: "input_correction";
483
+ family_resolution: "family_resolution";
484
+ }>;
485
+ value: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
486
+ note: z.ZodString;
487
+ }, z.core.$strict>;
488
+ status: z.ZodEnum<{
489
+ pending_example: "pending_example";
490
+ pending_review: "pending_review";
491
+ applied: "applied";
492
+ superseded: "superseded";
493
+ rejected: "rejected";
494
+ }>;
495
+ evidence: z.ZodNullable<z.ZodObject<{
496
+ id: z.ZodString;
497
+ contentHash: z.ZodString;
498
+ revision: z.ZodNumber;
499
+ }, z.core.$strict>>;
500
+ createdAt: z.ZodString;
501
+ revision: z.ZodNumber;
502
+ review: z.ZodDefault<z.ZodNullable<z.ZodObject<{
503
+ actorId: z.ZodString;
504
+ decision: z.ZodNullable<z.ZodObject<{
505
+ id: z.ZodString;
506
+ contentHash: z.ZodString;
507
+ revision: z.ZodNumber;
508
+ }, z.core.$strict>>;
509
+ note: z.ZodString;
510
+ resolvedAt: z.ZodString;
511
+ }, z.core.$strict>>>;
512
+ }, z.core.$strict>;
513
+ export declare const TaskAdmissionDecisionContentSchema: z.ZodObject<{
514
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
515
+ id: z.ZodString;
516
+ revision: z.ZodNumber;
517
+ evidence: z.ZodObject<{
518
+ id: z.ZodString;
519
+ contentHash: z.ZodString;
520
+ revision: z.ZodNumber;
521
+ }, z.core.$strict>;
522
+ supersedes: z.ZodNullable<z.ZodObject<{
523
+ id: z.ZodString;
524
+ contentHash: z.ZodString;
525
+ revision: z.ZodNumber;
526
+ }, z.core.$strict>>;
527
+ actor: z.ZodObject<{
528
+ kind: z.ZodEnum<{
529
+ human: "human";
530
+ qualified_policy: "qualified_policy";
531
+ }>;
532
+ id: z.ZodString;
533
+ policy: z.ZodNullable<z.ZodObject<{
534
+ id: z.ZodString;
535
+ contentHash: z.ZodString;
536
+ revision: z.ZodNumber;
537
+ }, z.core.$strict>>;
538
+ }, z.core.$strict>;
539
+ evidenceValidity: z.ZodEnum<{
540
+ pending: "pending";
541
+ valid: "valid";
542
+ invalid: "invalid";
543
+ }>;
544
+ taskAdmissibility: z.ZodEnum<{
545
+ pending: "pending";
546
+ approved: "approved";
547
+ rejected: "rejected";
548
+ }>;
549
+ observedQuality: z.ZodEnum<{
550
+ passed: "passed";
551
+ failed: "failed";
552
+ unavailable: "unavailable";
553
+ unscored: "unscored";
554
+ }>;
555
+ targetApproval: z.ZodEnum<{
556
+ pending: "pending";
557
+ approved: "approved";
558
+ rejected: "rejected";
559
+ not_required: "not_required";
560
+ }>;
561
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
562
+ grade: z.ZodNullable<z.ZodObject<{
563
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
564
+ binding: z.ZodObject<{
565
+ id: z.ZodString;
566
+ contentHash: z.ZodString;
567
+ revision: z.ZodNumber;
568
+ }, z.core.$strict>;
569
+ taskHash: z.ZodString;
570
+ outputHash: z.ZodString;
571
+ results: z.ZodArray<z.ZodObject<{
572
+ graderId: z.ZodString;
573
+ reward: z.ZodObject<{
574
+ id: z.ZodString;
575
+ contentHash: z.ZodString;
576
+ revision: z.ZodNumber;
577
+ }, z.core.$strict>;
578
+ role: z.ZodEnum<{
579
+ evaluation: "evaluation";
580
+ training: "training";
581
+ }>;
582
+ status: z.ZodEnum<{
583
+ pending: "pending";
584
+ failed: "failed";
585
+ scored: "scored";
586
+ unavailable: "unavailable";
587
+ }>;
588
+ rawScore: z.ZodNullable<z.ZodNumber>;
589
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
590
+ passed: z.ZodNullable<z.ZodBoolean>;
591
+ evidenceHashes: z.ZodArray<z.ZodString>;
592
+ message: z.ZodNullable<z.ZodString>;
593
+ }, z.core.$strict>>;
594
+ training: z.ZodObject<{
595
+ status: z.ZodEnum<{
596
+ scored: "scored";
597
+ unscorable: "unscorable";
598
+ not_configured: "not_configured";
599
+ }>;
600
+ score: z.ZodNullable<z.ZodNumber>;
601
+ passed: z.ZodNullable<z.ZodBoolean>;
602
+ }, z.core.$strict>;
603
+ evaluation: z.ZodObject<{
604
+ status: z.ZodEnum<{
605
+ scored: "scored";
606
+ unscorable: "unscorable";
607
+ not_configured: "not_configured";
608
+ }>;
609
+ score: z.ZodNullable<z.ZodNumber>;
610
+ passed: z.ZodNullable<z.ZodBoolean>;
611
+ }, z.core.$strict>;
612
+ contentHash: z.ZodString;
613
+ }, z.core.$strict>>;
614
+ targetGrade: z.ZodNullable<z.ZodObject<{
615
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
616
+ binding: z.ZodObject<{
617
+ id: z.ZodString;
618
+ contentHash: z.ZodString;
619
+ revision: z.ZodNumber;
620
+ }, z.core.$strict>;
621
+ taskHash: z.ZodString;
622
+ outputHash: z.ZodString;
623
+ results: z.ZodArray<z.ZodObject<{
624
+ graderId: z.ZodString;
625
+ reward: z.ZodObject<{
626
+ id: z.ZodString;
627
+ contentHash: z.ZodString;
628
+ revision: z.ZodNumber;
629
+ }, z.core.$strict>;
630
+ role: z.ZodEnum<{
631
+ evaluation: "evaluation";
632
+ training: "training";
633
+ }>;
634
+ status: z.ZodEnum<{
635
+ pending: "pending";
636
+ failed: "failed";
637
+ scored: "scored";
638
+ unavailable: "unavailable";
639
+ }>;
640
+ rawScore: z.ZodNullable<z.ZodNumber>;
641
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
642
+ passed: z.ZodNullable<z.ZodBoolean>;
643
+ evidenceHashes: z.ZodArray<z.ZodString>;
644
+ message: z.ZodNullable<z.ZodString>;
645
+ }, z.core.$strict>>;
646
+ training: z.ZodObject<{
647
+ status: z.ZodEnum<{
648
+ scored: "scored";
649
+ unscorable: "unscorable";
650
+ not_configured: "not_configured";
651
+ }>;
652
+ score: z.ZodNullable<z.ZodNumber>;
653
+ passed: z.ZodNullable<z.ZodBoolean>;
654
+ }, z.core.$strict>;
655
+ evaluation: z.ZodObject<{
656
+ status: z.ZodEnum<{
657
+ scored: "scored";
658
+ unscorable: "unscorable";
659
+ not_configured: "not_configured";
660
+ }>;
661
+ score: z.ZodNullable<z.ZodNumber>;
662
+ passed: z.ZodNullable<z.ZodBoolean>;
663
+ }, z.core.$strict>;
664
+ contentHash: z.ZodString;
665
+ }, z.core.$strict>>;
666
+ note: z.ZodString;
667
+ decidedAt: z.ZodString;
668
+ }, z.core.$strict>;
669
+ export declare const TaskAdmissionDecisionSchema: z.ZodObject<{
670
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
671
+ id: z.ZodString;
672
+ revision: z.ZodNumber;
673
+ evidence: z.ZodObject<{
674
+ id: z.ZodString;
675
+ contentHash: z.ZodString;
676
+ revision: z.ZodNumber;
677
+ }, z.core.$strict>;
678
+ supersedes: z.ZodNullable<z.ZodObject<{
679
+ id: z.ZodString;
680
+ contentHash: z.ZodString;
681
+ revision: z.ZodNumber;
682
+ }, z.core.$strict>>;
683
+ actor: z.ZodObject<{
684
+ kind: z.ZodEnum<{
685
+ human: "human";
686
+ qualified_policy: "qualified_policy";
687
+ }>;
688
+ id: z.ZodString;
689
+ policy: z.ZodNullable<z.ZodObject<{
690
+ id: z.ZodString;
691
+ contentHash: z.ZodString;
692
+ revision: z.ZodNumber;
693
+ }, z.core.$strict>>;
694
+ }, z.core.$strict>;
695
+ evidenceValidity: z.ZodEnum<{
696
+ pending: "pending";
697
+ valid: "valid";
698
+ invalid: "invalid";
699
+ }>;
700
+ taskAdmissibility: z.ZodEnum<{
701
+ pending: "pending";
702
+ approved: "approved";
703
+ rejected: "rejected";
704
+ }>;
705
+ observedQuality: z.ZodEnum<{
706
+ passed: "passed";
707
+ failed: "failed";
708
+ unavailable: "unavailable";
709
+ unscored: "unscored";
710
+ }>;
711
+ targetApproval: z.ZodEnum<{
712
+ pending: "pending";
713
+ approved: "approved";
714
+ rejected: "rejected";
715
+ not_required: "not_required";
716
+ }>;
717
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
718
+ grade: z.ZodNullable<z.ZodObject<{
719
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
720
+ binding: z.ZodObject<{
721
+ id: z.ZodString;
722
+ contentHash: z.ZodString;
723
+ revision: z.ZodNumber;
724
+ }, z.core.$strict>;
725
+ taskHash: z.ZodString;
726
+ outputHash: z.ZodString;
727
+ results: z.ZodArray<z.ZodObject<{
728
+ graderId: z.ZodString;
729
+ reward: z.ZodObject<{
730
+ id: z.ZodString;
731
+ contentHash: z.ZodString;
732
+ revision: z.ZodNumber;
733
+ }, z.core.$strict>;
734
+ role: z.ZodEnum<{
735
+ evaluation: "evaluation";
736
+ training: "training";
737
+ }>;
738
+ status: z.ZodEnum<{
739
+ pending: "pending";
740
+ failed: "failed";
741
+ scored: "scored";
742
+ unavailable: "unavailable";
743
+ }>;
744
+ rawScore: z.ZodNullable<z.ZodNumber>;
745
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
746
+ passed: z.ZodNullable<z.ZodBoolean>;
747
+ evidenceHashes: z.ZodArray<z.ZodString>;
748
+ message: z.ZodNullable<z.ZodString>;
749
+ }, z.core.$strict>>;
750
+ training: z.ZodObject<{
751
+ status: z.ZodEnum<{
752
+ scored: "scored";
753
+ unscorable: "unscorable";
754
+ not_configured: "not_configured";
755
+ }>;
756
+ score: z.ZodNullable<z.ZodNumber>;
757
+ passed: z.ZodNullable<z.ZodBoolean>;
758
+ }, z.core.$strict>;
759
+ evaluation: z.ZodObject<{
760
+ status: z.ZodEnum<{
761
+ scored: "scored";
762
+ unscorable: "unscorable";
763
+ not_configured: "not_configured";
764
+ }>;
765
+ score: z.ZodNullable<z.ZodNumber>;
766
+ passed: z.ZodNullable<z.ZodBoolean>;
767
+ }, z.core.$strict>;
768
+ contentHash: z.ZodString;
769
+ }, z.core.$strict>>;
770
+ targetGrade: z.ZodNullable<z.ZodObject<{
771
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
772
+ binding: z.ZodObject<{
773
+ id: z.ZodString;
774
+ contentHash: z.ZodString;
775
+ revision: z.ZodNumber;
776
+ }, z.core.$strict>;
777
+ taskHash: z.ZodString;
778
+ outputHash: z.ZodString;
779
+ results: z.ZodArray<z.ZodObject<{
780
+ graderId: z.ZodString;
781
+ reward: z.ZodObject<{
782
+ id: z.ZodString;
783
+ contentHash: z.ZodString;
784
+ revision: z.ZodNumber;
785
+ }, z.core.$strict>;
786
+ role: z.ZodEnum<{
787
+ evaluation: "evaluation";
788
+ training: "training";
789
+ }>;
790
+ status: z.ZodEnum<{
791
+ pending: "pending";
792
+ failed: "failed";
793
+ scored: "scored";
794
+ unavailable: "unavailable";
795
+ }>;
796
+ rawScore: z.ZodNullable<z.ZodNumber>;
797
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
798
+ passed: z.ZodNullable<z.ZodBoolean>;
799
+ evidenceHashes: z.ZodArray<z.ZodString>;
800
+ message: z.ZodNullable<z.ZodString>;
801
+ }, z.core.$strict>>;
802
+ training: z.ZodObject<{
803
+ status: z.ZodEnum<{
804
+ scored: "scored";
805
+ unscorable: "unscorable";
806
+ not_configured: "not_configured";
807
+ }>;
808
+ score: z.ZodNullable<z.ZodNumber>;
809
+ passed: z.ZodNullable<z.ZodBoolean>;
810
+ }, z.core.$strict>;
811
+ evaluation: z.ZodObject<{
812
+ status: z.ZodEnum<{
813
+ scored: "scored";
814
+ unscorable: "unscorable";
815
+ not_configured: "not_configured";
816
+ }>;
817
+ score: z.ZodNullable<z.ZodNumber>;
818
+ passed: z.ZodNullable<z.ZodBoolean>;
819
+ }, z.core.$strict>;
820
+ contentHash: z.ZodString;
821
+ }, z.core.$strict>>;
822
+ note: z.ZodString;
823
+ decidedAt: z.ZodString;
824
+ contentHash: z.ZodString;
825
+ }, z.core.$strict>;
826
+ export declare const TaskBatchContentSchema: z.ZodObject<{
827
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
828
+ id: z.ZodString;
829
+ revision: z.ZodLiteral<1>;
830
+ taskDefinition: z.ZodObject<{
831
+ id: z.ZodString;
832
+ contentHash: z.ZodString;
833
+ revision: z.ZodNumber;
834
+ }, z.core.$strict>;
835
+ rewardBinding: z.ZodObject<{
836
+ id: z.ZodString;
837
+ contentHash: z.ZodString;
838
+ revision: z.ZodNumber;
839
+ }, z.core.$strict>;
840
+ purpose: z.ZodEnum<{
841
+ evaluation: "evaluation";
842
+ supervised_training: "supervised_training";
843
+ reward_training: "reward_training";
844
+ }>;
845
+ examples: z.ZodArray<z.ZodObject<{
846
+ evidence: z.ZodObject<{
847
+ id: z.ZodString;
848
+ contentHash: z.ZodString;
849
+ revision: z.ZodNumber;
850
+ }, z.core.$strict>;
851
+ decision: z.ZodObject<{
852
+ id: z.ZodString;
853
+ contentHash: z.ZodString;
854
+ revision: z.ZodNumber;
855
+ }, z.core.$strict>;
856
+ familyKey: z.ZodString;
857
+ inputHash: z.ZodString;
858
+ split: z.ZodEnum<{
859
+ train: "train";
860
+ validation: "validation";
861
+ test: "test";
862
+ frozen_eval: "frozen_eval";
863
+ }>;
864
+ }, z.core.$strict>>;
865
+ sealedAt: z.ZodString;
866
+ sealedBy: z.ZodString;
867
+ }, z.core.$strict>;
868
+ export declare const TaskBatchSchema: z.ZodObject<{
869
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
870
+ id: z.ZodString;
871
+ revision: z.ZodLiteral<1>;
872
+ taskDefinition: z.ZodObject<{
873
+ id: z.ZodString;
874
+ contentHash: z.ZodString;
875
+ revision: z.ZodNumber;
876
+ }, z.core.$strict>;
877
+ rewardBinding: z.ZodObject<{
878
+ id: z.ZodString;
879
+ contentHash: z.ZodString;
880
+ revision: z.ZodNumber;
881
+ }, z.core.$strict>;
882
+ purpose: z.ZodEnum<{
883
+ evaluation: "evaluation";
884
+ supervised_training: "supervised_training";
885
+ reward_training: "reward_training";
886
+ }>;
887
+ examples: z.ZodArray<z.ZodObject<{
888
+ evidence: z.ZodObject<{
889
+ id: z.ZodString;
890
+ contentHash: z.ZodString;
891
+ revision: z.ZodNumber;
892
+ }, z.core.$strict>;
893
+ decision: z.ZodObject<{
894
+ id: z.ZodString;
895
+ contentHash: z.ZodString;
896
+ revision: z.ZodNumber;
897
+ }, z.core.$strict>;
898
+ familyKey: z.ZodString;
899
+ inputHash: z.ZodString;
900
+ split: z.ZodEnum<{
901
+ train: "train";
902
+ validation: "validation";
903
+ test: "test";
904
+ frozen_eval: "frozen_eval";
905
+ }>;
906
+ }, z.core.$strict>>;
907
+ sealedAt: z.ZodString;
908
+ sealedBy: z.ZodString;
909
+ contentHash: z.ZodString;
910
+ }, z.core.$strict>;
911
+ export declare const LearningPolicyContentSchema: z.ZodObject<{
912
+ schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
913
+ id: z.ZodString;
914
+ revision: z.ZodNumber;
915
+ modelProjectId: z.ZodString;
916
+ executionOwner: z.ZodEnum<{
917
+ local: "local";
918
+ hosted: "hosted";
919
+ }>;
920
+ enabled: z.ZodBoolean;
921
+ sources: z.ZodArray<z.ZodObject<{
922
+ id: z.ZodString;
923
+ contentHash: z.ZodString;
924
+ revision: z.ZodNumber;
925
+ }, z.core.$strict>>;
926
+ taskDefinition: z.ZodObject<{
927
+ id: z.ZodString;
928
+ contentHash: z.ZodString;
929
+ revision: z.ZodNumber;
930
+ }, z.core.$strict>;
931
+ rewardBinding: z.ZodObject<{
932
+ id: z.ZodString;
933
+ contentHash: z.ZodString;
934
+ revision: z.ZodNumber;
935
+ }, z.core.$strict>;
936
+ admission: z.ZodObject<{
937
+ mode: z.ZodEnum<{
938
+ human: "human";
939
+ qualified_automatic: "qualified_automatic";
940
+ }>;
941
+ qualification: z.ZodNullable<z.ZodObject<{
942
+ id: z.ZodString;
943
+ contentHash: z.ZodString;
944
+ }, z.core.$strict>>;
945
+ minimumApprovedExamples: z.ZodNumber;
946
+ }, z.core.$strict>;
947
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
948
+ kind: z.ZodLiteral<"manual">;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ kind: z.ZodLiteral<"approved_count">;
951
+ }, z.core.$strict>, z.ZodObject<{
952
+ kind: z.ZodLiteral<"schedule">;
953
+ intervalSeconds: z.ZodNumber;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ kind: z.ZodLiteral<"upstream_accepted">;
956
+ modelProjectId: z.ZodString;
957
+ }, z.core.$strict>], "kind">;
958
+ trainingParent: z.ZodObject<{
959
+ id: z.ZodString;
960
+ contentHash: z.ZodString;
961
+ }, z.core.$strict>;
962
+ teacher: z.ZodNullable<z.ZodObject<{
963
+ id: z.ZodString;
964
+ contentHash: z.ZodString;
965
+ }, z.core.$strict>>;
966
+ training: z.ZodObject<{
967
+ method: z.ZodEnum<{
968
+ sft: "sft";
969
+ dpo: "dpo";
970
+ grpo: "grpo";
971
+ ppo: "ppo";
972
+ sdft: "sdft";
973
+ opd: "opd";
974
+ opsd: "opsd";
975
+ sdpo: "sdpo";
976
+ }>;
977
+ recipe: z.ZodObject<{
978
+ id: z.ZodString;
979
+ contentHash: z.ZodString;
980
+ }, z.core.$strict>;
981
+ retentionEvaluation: z.ZodObject<{
982
+ id: z.ZodString;
983
+ contentHash: z.ZodString;
984
+ }, z.core.$strict>;
985
+ replayBatches: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ contentHash: z.ZodString;
988
+ }, z.core.$strict>>;
989
+ }, z.core.$strict>;
990
+ limits: z.ZodObject<{
991
+ maxIterationSpendUsd: z.ZodNumber;
992
+ maxDailySpendUsd: z.ZodNumber;
993
+ cooldownSeconds: z.ZodNumber;
994
+ maxRetries: z.ZodNumber;
995
+ maxBatchExamples: z.ZodNumber;
996
+ maxBacklogExamples: z.ZodNumber;
997
+ }, z.core.$strict>;
998
+ automation: z.ZodObject<{
999
+ collect: z.ZodBoolean;
1000
+ train: z.ZodBoolean;
1001
+ accept: z.ZodBoolean;
1002
+ serve: z.ZodBoolean;
1003
+ }, z.core.$strict>;
1004
+ acceptance: z.ZodObject<{
1005
+ minimumScore: z.ZodNumber;
1006
+ maximumRetentionRegression: z.ZodNumber;
1007
+ requireImprovement: z.ZodBoolean;
1008
+ rollbackVersion: z.ZodNullable<z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ contentHash: z.ZodString;
1011
+ }, z.core.$strict>>;
1012
+ }, z.core.$strict>;
1013
+ }, z.core.$strict>;
1014
+ export declare const LearningPolicySchema: z.ZodObject<{
1015
+ schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
1016
+ id: z.ZodString;
1017
+ revision: z.ZodNumber;
1018
+ modelProjectId: z.ZodString;
1019
+ executionOwner: z.ZodEnum<{
1020
+ local: "local";
1021
+ hosted: "hosted";
1022
+ }>;
1023
+ enabled: z.ZodBoolean;
1024
+ sources: z.ZodArray<z.ZodObject<{
1025
+ id: z.ZodString;
1026
+ contentHash: z.ZodString;
1027
+ revision: z.ZodNumber;
1028
+ }, z.core.$strict>>;
1029
+ taskDefinition: z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ contentHash: z.ZodString;
1032
+ revision: z.ZodNumber;
1033
+ }, z.core.$strict>;
1034
+ rewardBinding: z.ZodObject<{
1035
+ id: z.ZodString;
1036
+ contentHash: z.ZodString;
1037
+ revision: z.ZodNumber;
1038
+ }, z.core.$strict>;
1039
+ admission: z.ZodObject<{
1040
+ mode: z.ZodEnum<{
1041
+ human: "human";
1042
+ qualified_automatic: "qualified_automatic";
1043
+ }>;
1044
+ qualification: z.ZodNullable<z.ZodObject<{
1045
+ id: z.ZodString;
1046
+ contentHash: z.ZodString;
1047
+ }, z.core.$strict>>;
1048
+ minimumApprovedExamples: z.ZodNumber;
1049
+ }, z.core.$strict>;
1050
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1051
+ kind: z.ZodLiteral<"manual">;
1052
+ }, z.core.$strict>, z.ZodObject<{
1053
+ kind: z.ZodLiteral<"approved_count">;
1054
+ }, z.core.$strict>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"schedule">;
1056
+ intervalSeconds: z.ZodNumber;
1057
+ }, z.core.$strict>, z.ZodObject<{
1058
+ kind: z.ZodLiteral<"upstream_accepted">;
1059
+ modelProjectId: z.ZodString;
1060
+ }, z.core.$strict>], "kind">;
1061
+ trainingParent: z.ZodObject<{
1062
+ id: z.ZodString;
1063
+ contentHash: z.ZodString;
1064
+ }, z.core.$strict>;
1065
+ teacher: z.ZodNullable<z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ contentHash: z.ZodString;
1068
+ }, z.core.$strict>>;
1069
+ training: z.ZodObject<{
1070
+ method: z.ZodEnum<{
1071
+ sft: "sft";
1072
+ dpo: "dpo";
1073
+ grpo: "grpo";
1074
+ ppo: "ppo";
1075
+ sdft: "sdft";
1076
+ opd: "opd";
1077
+ opsd: "opsd";
1078
+ sdpo: "sdpo";
1079
+ }>;
1080
+ recipe: z.ZodObject<{
1081
+ id: z.ZodString;
1082
+ contentHash: z.ZodString;
1083
+ }, z.core.$strict>;
1084
+ retentionEvaluation: z.ZodObject<{
1085
+ id: z.ZodString;
1086
+ contentHash: z.ZodString;
1087
+ }, z.core.$strict>;
1088
+ replayBatches: z.ZodArray<z.ZodObject<{
1089
+ id: z.ZodString;
1090
+ contentHash: z.ZodString;
1091
+ }, z.core.$strict>>;
1092
+ }, z.core.$strict>;
1093
+ limits: z.ZodObject<{
1094
+ maxIterationSpendUsd: z.ZodNumber;
1095
+ maxDailySpendUsd: z.ZodNumber;
1096
+ cooldownSeconds: z.ZodNumber;
1097
+ maxRetries: z.ZodNumber;
1098
+ maxBatchExamples: z.ZodNumber;
1099
+ maxBacklogExamples: z.ZodNumber;
1100
+ }, z.core.$strict>;
1101
+ automation: z.ZodObject<{
1102
+ collect: z.ZodBoolean;
1103
+ train: z.ZodBoolean;
1104
+ accept: z.ZodBoolean;
1105
+ serve: z.ZodBoolean;
1106
+ }, z.core.$strict>;
1107
+ acceptance: z.ZodObject<{
1108
+ minimumScore: z.ZodNumber;
1109
+ maximumRetentionRegression: z.ZodNumber;
1110
+ requireImprovement: z.ZodBoolean;
1111
+ rollbackVersion: z.ZodNullable<z.ZodObject<{
1112
+ id: z.ZodString;
1113
+ contentHash: z.ZodString;
1114
+ }, z.core.$strict>>;
1115
+ }, z.core.$strict>;
1116
+ contentHash: z.ZodString;
1117
+ }, z.core.$strict>;
1118
+ export declare const LearningIterationStatusSchema: z.ZodEnum<{
1119
+ failed: "failed";
1120
+ cancelled: "cancelled";
1121
+ accepted: "accepted";
1122
+ training: "training";
1123
+ rejected: "rejected";
1124
+ waiting_for_data: "waiting_for_data";
1125
+ waiting_for_review: "waiting_for_review";
1126
+ ready: "ready";
1127
+ evaluating: "evaluating";
1128
+ candidate_ready: "candidate_ready";
1129
+ paused: "paused";
1130
+ cancelling: "cancelling";
1131
+ }>;
1132
+ export declare const LearningIterationSchema: z.ZodObject<{
1133
+ schemaVersion: z.ZodLiteral<"openpond.learningIteration.v1">;
1134
+ id: z.ZodString;
1135
+ revision: z.ZodNumber;
1136
+ policy: z.ZodObject<{
1137
+ id: z.ZodString;
1138
+ contentHash: z.ZodString;
1139
+ revision: z.ZodNumber;
1140
+ }, z.core.$strict>;
1141
+ status: z.ZodEnum<{
1142
+ failed: "failed";
1143
+ cancelled: "cancelled";
1144
+ accepted: "accepted";
1145
+ training: "training";
1146
+ rejected: "rejected";
1147
+ waiting_for_data: "waiting_for_data";
1148
+ waiting_for_review: "waiting_for_review";
1149
+ ready: "ready";
1150
+ evaluating: "evaluating";
1151
+ candidate_ready: "candidate_ready";
1152
+ paused: "paused";
1153
+ cancelling: "cancelling";
1154
+ }>;
1155
+ triggerIdentity: z.ZodString;
1156
+ batch: z.ZodNullable<z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ contentHash: z.ZodString;
1159
+ revision: z.ZodNumber;
1160
+ }, z.core.$strict>>;
1161
+ sourceWatermarks: z.ZodRecord<z.ZodString, z.ZodNumber>;
1162
+ trainingParent: z.ZodObject<{
1163
+ id: z.ZodString;
1164
+ contentHash: z.ZodString;
1165
+ }, z.core.$strict>;
1166
+ teacher: z.ZodNullable<z.ZodObject<{
1167
+ id: z.ZodString;
1168
+ contentHash: z.ZodString;
1169
+ }, z.core.$strict>>;
1170
+ upstreamEvent: z.ZodNullable<z.ZodObject<{
1171
+ id: z.ZodString;
1172
+ contentHash: z.ZodString;
1173
+ }, z.core.$strict>>;
1174
+ trainingJob: z.ZodNullable<z.ZodObject<{
1175
+ id: z.ZodString;
1176
+ contentHash: z.ZodString;
1177
+ }, z.core.$strict>>;
1178
+ evaluationJob: z.ZodNullable<z.ZodObject<{
1179
+ id: z.ZodString;
1180
+ contentHash: z.ZodString;
1181
+ }, z.core.$strict>>;
1182
+ candidateVersion: z.ZodNullable<z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ contentHash: z.ZodString;
1185
+ }, z.core.$strict>>;
1186
+ dispatchId: z.ZodString;
1187
+ retryCount: z.ZodNumber;
1188
+ spendUsd: z.ZodNumber;
1189
+ failure: z.ZodNullable<z.ZodObject<{
1190
+ code: z.ZodString;
1191
+ message: z.ZodString;
1192
+ }, z.core.$strict>>;
1193
+ createdAt: z.ZodString;
1194
+ updatedAt: z.ZodString;
1195
+ }, z.core.$strict>;
1196
+ export declare const TaskGradeRunSchema: z.ZodObject<{
1197
+ schemaVersion: z.ZodLiteral<"openpond.taskGradeRun.v1">;
1198
+ id: z.ZodString;
1199
+ revision: z.ZodNumber;
1200
+ evidence: z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ contentHash: z.ZodString;
1203
+ revision: z.ZodNumber;
1204
+ }, z.core.$strict>;
1205
+ binding: z.ZodObject<{
1206
+ id: z.ZodString;
1207
+ contentHash: z.ZodString;
1208
+ revision: z.ZodNumber;
1209
+ }, z.core.$strict>;
1210
+ target: z.ZodEnum<{
1211
+ observed: "observed";
1212
+ proposed_target: "proposed_target";
1213
+ }>;
1214
+ output: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1215
+ status: z.ZodEnum<{
1216
+ failed: "failed";
1217
+ completed: "completed";
1218
+ cancelled: "cancelled";
1219
+ running: "running";
1220
+ cancelling: "cancelling";
1221
+ queued: "queued";
1222
+ }>;
1223
+ composition: z.ZodNullable<z.ZodObject<{
1224
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1225
+ binding: z.ZodObject<{
1226
+ id: z.ZodString;
1227
+ contentHash: z.ZodString;
1228
+ revision: z.ZodNumber;
1229
+ }, z.core.$strict>;
1230
+ taskHash: z.ZodString;
1231
+ outputHash: z.ZodString;
1232
+ results: z.ZodArray<z.ZodObject<{
1233
+ graderId: z.ZodString;
1234
+ reward: z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ contentHash: z.ZodString;
1237
+ revision: z.ZodNumber;
1238
+ }, z.core.$strict>;
1239
+ role: z.ZodEnum<{
1240
+ evaluation: "evaluation";
1241
+ training: "training";
1242
+ }>;
1243
+ status: z.ZodEnum<{
1244
+ pending: "pending";
1245
+ failed: "failed";
1246
+ scored: "scored";
1247
+ unavailable: "unavailable";
1248
+ }>;
1249
+ rawScore: z.ZodNullable<z.ZodNumber>;
1250
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1251
+ passed: z.ZodNullable<z.ZodBoolean>;
1252
+ evidenceHashes: z.ZodArray<z.ZodString>;
1253
+ message: z.ZodNullable<z.ZodString>;
1254
+ }, z.core.$strict>>;
1255
+ training: z.ZodObject<{
1256
+ status: z.ZodEnum<{
1257
+ scored: "scored";
1258
+ unscorable: "unscorable";
1259
+ not_configured: "not_configured";
1260
+ }>;
1261
+ score: z.ZodNullable<z.ZodNumber>;
1262
+ passed: z.ZodNullable<z.ZodBoolean>;
1263
+ }, z.core.$strict>;
1264
+ evaluation: z.ZodObject<{
1265
+ status: z.ZodEnum<{
1266
+ scored: "scored";
1267
+ unscorable: "unscorable";
1268
+ not_configured: "not_configured";
1269
+ }>;
1270
+ score: z.ZodNullable<z.ZodNumber>;
1271
+ passed: z.ZodNullable<z.ZodBoolean>;
1272
+ }, z.core.$strict>;
1273
+ contentHash: z.ZodString;
1274
+ }, z.core.$strict>>;
1275
+ leaseOwner: z.ZodNullable<z.ZodString>;
1276
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1277
+ attemptCount: z.ZodNumber;
1278
+ timeoutMs: z.ZodNumber;
1279
+ maximumSpendUsd: z.ZodNumber;
1280
+ failure: z.ZodNullable<z.ZodString>;
1281
+ createdAt: z.ZodString;
1282
+ updatedAt: z.ZodString;
1283
+ }, z.core.$strict>;
1284
+ export declare const LearningResourceSchema: z.ZodUnion<readonly [z.ZodObject<{
1285
+ schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
1286
+ id: z.ZodString;
1287
+ revision: z.ZodNumber;
1288
+ name: z.ZodString;
1289
+ description: z.ZodString;
1290
+ instructions: z.ZodString;
1291
+ category: z.ZodEnum<{
1292
+ custom: "custom";
1293
+ structured: "structured";
1294
+ question_answering: "question_answering";
1295
+ coding: "coding";
1296
+ tool_workflow: "tool_workflow";
1297
+ }>;
1298
+ familyNamespace: z.ZodString;
1299
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1300
+ outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1301
+ rewardBinding: z.ZodObject<{
1302
+ id: z.ZodString;
1303
+ contentHash: z.ZodString;
1304
+ revision: z.ZodNumber;
1305
+ }, z.core.$strict>;
1306
+ harness: z.ZodNullable<z.ZodObject<{
1307
+ id: z.ZodString;
1308
+ contentHash: z.ZodString;
1309
+ }, z.core.$strict>>;
1310
+ execution: z.ZodObject<{
1311
+ policy: z.ZodObject<{
1312
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
1313
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
1314
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1315
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1316
+ }, z.core.$strict>;
1317
+ environment: z.ZodObject<{
1318
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
1319
+ kind: z.ZodEnum<{
1320
+ text: "text";
1321
+ agent: "agent";
1322
+ work: "work";
1323
+ custom_program: "custom_program";
1324
+ }>;
1325
+ entrypoint: z.ZodString;
1326
+ stateful: z.ZodBoolean;
1327
+ deterministicSeeds: z.ZodBoolean;
1328
+ lifecycle: z.ZodArray<z.ZodEnum<{
1329
+ create: "create";
1330
+ reset: "reset";
1331
+ step: "step";
1332
+ collect: "collect";
1333
+ destroy: "destroy";
1334
+ }>>;
1335
+ networkPolicy: z.ZodEnum<{
1336
+ none: "none";
1337
+ declared_read_only: "declared_read_only";
1338
+ declared_scoped: "declared_scoped";
1339
+ }>;
1340
+ defaultTimeoutMs: z.ZodNumber;
1341
+ }, z.core.$strict>;
1342
+ environmentRelease: z.ZodOptional<z.ZodObject<{
1343
+ id: z.ZodString;
1344
+ contentHash: z.ZodString;
1345
+ }, z.core.$strict>>;
1346
+ tools: z.ZodArray<z.ZodObject<{
1347
+ name: z.ZodString;
1348
+ description: z.ZodString;
1349
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1350
+ inputSchemaHash: z.ZodString;
1351
+ sideEffect: z.ZodEnum<{
1352
+ read: "read";
1353
+ write: "write";
1354
+ }>;
1355
+ timeoutMs: z.ZodNumber;
1356
+ }, z.core.$strict>>;
1357
+ capabilities: z.ZodArray<z.ZodObject<{
1358
+ id: z.ZodString;
1359
+ required: z.ZodBoolean;
1360
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1361
+ portability: z.ZodEnum<{
1362
+ portable: "portable";
1363
+ host_adapter: "host_adapter";
1364
+ local_only: "local_only";
1365
+ hosted_only: "hosted_only";
1366
+ }>;
1367
+ }, z.core.$strict>>;
1368
+ verifierSetRelease: z.ZodOptional<z.ZodObject<{
1369
+ id: z.ZodString;
1370
+ contentHash: z.ZodString;
1371
+ }, z.core.$strict>>;
1372
+ }, z.core.$strict>;
1373
+ contentHash: z.ZodString;
1374
+ }, z.core.$strict>, z.ZodObject<{
1375
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
1376
+ id: z.ZodString;
1377
+ revision: z.ZodNumber;
1378
+ name: z.ZodString;
1379
+ description: z.ZodString;
1380
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
1381
+ kind: z.ZodEnum<{
1382
+ content: "content";
1383
+ schema: "schema";
1384
+ artifact: "artifact";
1385
+ runtime_event: "runtime_event";
1386
+ state: "state";
1387
+ }>;
1388
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1389
+ }, z.core.$strict>, z.ZodObject<{
1390
+ kind: z.ZodLiteral<"model_judge">;
1391
+ rubricRef: z.ZodObject<{
1392
+ id: z.ZodString;
1393
+ path: z.ZodString;
1394
+ contentHash: z.ZodString;
1395
+ sizeBytes: z.ZodNumber;
1396
+ mediaType: z.ZodString;
1397
+ visibility: z.ZodEnum<{
1398
+ policy: "policy";
1399
+ verifier: "verifier";
1400
+ host_private: "host_private";
1401
+ }>;
1402
+ }, z.core.$strict>;
1403
+ calibrationStatus: z.ZodEnum<{
1404
+ pending: "pending";
1405
+ passed: "passed";
1406
+ failed: "failed";
1407
+ }>;
1408
+ model: z.ZodOptional<z.ZodObject<{
1409
+ providerId: z.ZodString;
1410
+ modelId: z.ZodString;
1411
+ revision: z.ZodNullable<z.ZodString>;
1412
+ }, z.core.$strict>>;
1413
+ temperature: z.ZodOptional<z.ZodNumber>;
1414
+ }, z.core.$strict>, z.ZodObject<{
1415
+ kind: z.ZodLiteral<"custom_verifier">;
1416
+ networkPolicy: z.ZodLiteral<"none">;
1417
+ verifierRef: z.ZodObject<{
1418
+ id: z.ZodString;
1419
+ path: z.ZodString;
1420
+ contentHash: z.ZodString;
1421
+ sizeBytes: z.ZodNumber;
1422
+ mediaType: z.ZodString;
1423
+ visibility: z.ZodEnum<{
1424
+ policy: "policy";
1425
+ verifier: "verifier";
1426
+ host_private: "host_private";
1427
+ }>;
1428
+ }, z.core.$strict>;
1429
+ exportName: z.ZodOptional<z.ZodString>;
1430
+ timeoutMs: z.ZodNumber;
1431
+ }, z.core.$strict>, z.ZodObject<{
1432
+ kind: z.ZodLiteral<"human">;
1433
+ rubricRef: z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ path: z.ZodString;
1436
+ contentHash: z.ZodString;
1437
+ sizeBytes: z.ZodNumber;
1438
+ mediaType: z.ZodString;
1439
+ visibility: z.ZodEnum<{
1440
+ policy: "policy";
1441
+ verifier: "verifier";
1442
+ host_private: "host_private";
1443
+ }>;
1444
+ }, z.core.$strict>;
1445
+ reviewerRole: z.ZodString;
1446
+ }, z.core.$strict>, z.ZodObject<{
1447
+ kind: z.ZodLiteral<"learned_model">;
1448
+ modelVersion: z.ZodObject<{
1449
+ id: z.ZodString;
1450
+ contentHash: z.ZodString;
1451
+ }, z.core.$strict>;
1452
+ inputContract: z.ZodObject<{
1453
+ id: z.ZodString;
1454
+ path: z.ZodString;
1455
+ contentHash: z.ZodString;
1456
+ sizeBytes: z.ZodNumber;
1457
+ mediaType: z.ZodString;
1458
+ visibility: z.ZodEnum<{
1459
+ policy: "policy";
1460
+ verifier: "verifier";
1461
+ host_private: "host_private";
1462
+ }>;
1463
+ }, z.core.$strict>;
1464
+ }, z.core.$strict>]>;
1465
+ rawScore: z.ZodObject<{
1466
+ minimum: z.ZodNumber;
1467
+ maximum: z.ZodNumber;
1468
+ }, z.core.$strict>;
1469
+ assets: z.ZodArray<z.ZodObject<{
1470
+ id: z.ZodString;
1471
+ path: z.ZodString;
1472
+ contentHash: z.ZodString;
1473
+ sizeBytes: z.ZodNumber;
1474
+ mediaType: z.ZodString;
1475
+ visibility: z.ZodEnum<{
1476
+ policy: "policy";
1477
+ verifier: "verifier";
1478
+ host_private: "host_private";
1479
+ }>;
1480
+ }, z.core.$strict>>;
1481
+ contentHash: z.ZodString;
1482
+ }, z.core.$strict>, z.ZodObject<{
1483
+ schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
1484
+ id: z.ZodString;
1485
+ revision: z.ZodNumber;
1486
+ name: z.ZodOptional<z.ZodString>;
1487
+ description: z.ZodOptional<z.ZodString>;
1488
+ recipeRef: z.ZodOptional<z.ZodObject<{
1489
+ id: z.ZodString;
1490
+ contentHash: z.ZodString;
1491
+ revision: z.ZodNumber;
1492
+ }, z.core.$strict>>;
1493
+ sources: z.ZodArray<z.ZodObject<{
1494
+ graderId: z.ZodString;
1495
+ reward: z.ZodObject<{
1496
+ id: z.ZodString;
1497
+ contentHash: z.ZodString;
1498
+ revision: z.ZodNumber;
1499
+ }, z.core.$strict>;
1500
+ role: z.ZodEnum<{
1501
+ evaluation: "evaluation";
1502
+ training: "training";
1503
+ }>;
1504
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1505
+ kind: z.ZodLiteral<"identity">;
1506
+ }, z.core.$strict>, z.ZodObject<{
1507
+ kind: z.ZodLiteral<"linear">;
1508
+ minimum: z.ZodNumber;
1509
+ maximum: z.ZodNumber;
1510
+ direction: z.ZodEnum<{
1511
+ higher: "higher";
1512
+ lower: "lower";
1513
+ }>;
1514
+ }, z.core.$strict>], "kind">;
1515
+ weight: z.ZodNumber;
1516
+ required: z.ZodBoolean;
1517
+ hardGate: z.ZodBoolean;
1518
+ privileged: z.ZodBoolean;
1519
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ contentHash: z.ZodString;
1522
+ }, z.core.$strict>>;
1523
+ }, z.core.$strict>>;
1524
+ aggregation: z.ZodLiteral<"weighted_mean">;
1525
+ unscorable: z.ZodLiteral<"exclude_optional_require_all_required">;
1526
+ contentHash: z.ZodString;
1527
+ }, z.core.$strict>, z.ZodObject<{
1528
+ schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
1529
+ id: z.ZodString;
1530
+ revision: z.ZodNumber;
1531
+ name: z.ZodString;
1532
+ kind: z.ZodEnum<{
1533
+ work: "work";
1534
+ provider: "provider";
1535
+ direct: "direct";
1536
+ benchmark: "benchmark";
1537
+ opentelemetry: "opentelemetry";
1538
+ }>;
1539
+ taskDefinition: z.ZodObject<{
1540
+ id: z.ZodString;
1541
+ contentHash: z.ZodString;
1542
+ revision: z.ZodNumber;
1543
+ }, z.core.$strict>;
1544
+ enabled: z.ZodBoolean;
1545
+ allowedSplits: z.ZodArray<z.ZodEnum<{
1546
+ train: "train";
1547
+ validation: "validation";
1548
+ test: "test";
1549
+ frozen_eval: "frozen_eval";
1550
+ }>>;
1551
+ mapping: z.ZodNullable<z.ZodObject<{
1552
+ schemaVersion: z.ZodLiteral<"openpond.taskSourceMapping.v1">;
1553
+ exampleId: z.ZodString;
1554
+ attemptId: z.ZodString;
1555
+ occurredAt: z.ZodString;
1556
+ input: z.ZodString;
1557
+ observedOutput: z.ZodNullable<z.ZodString>;
1558
+ expected: z.ZodNullable<z.ZodString>;
1559
+ evaluatorContext: z.ZodNullable<z.ZodString>;
1560
+ familyKey: z.ZodString;
1561
+ split: z.ZodEnum<{
1562
+ train: "train";
1563
+ validation: "validation";
1564
+ test: "test";
1565
+ frozen_eval: "frozen_eval";
1566
+ }>;
1567
+ }, z.core.$strict>>;
1568
+ adapterVersion: z.ZodNullable<z.ZodString>;
1569
+ contentHash: z.ZodString;
1570
+ }, z.core.$strict>, z.ZodObject<{
1571
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
1572
+ id: z.ZodString;
1573
+ revision: z.ZodNumber;
1574
+ source: z.ZodObject<{
1575
+ id: z.ZodString;
1576
+ contentHash: z.ZodString;
1577
+ revision: z.ZodNumber;
1578
+ }, z.core.$strict>;
1579
+ submission: z.ZodObject<{
1580
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
1581
+ sourceId: z.ZodString;
1582
+ idempotencyKey: z.ZodString;
1583
+ taskDefinition: z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ contentHash: z.ZodString;
1586
+ revision: z.ZodNumber;
1587
+ }, z.core.$strict>;
1588
+ exampleId: z.ZodString;
1589
+ attemptId: z.ZodString;
1590
+ occurredAt: z.ZodString;
1591
+ familyKey: z.ZodNullable<z.ZodString>;
1592
+ split: z.ZodEnum<{
1593
+ train: "train";
1594
+ validation: "validation";
1595
+ test: "test";
1596
+ frozen_eval: "frozen_eval";
1597
+ }>;
1598
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1599
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1600
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1601
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1602
+ assets: z.ZodArray<z.ZodObject<{
1603
+ id: z.ZodString;
1604
+ path: z.ZodString;
1605
+ contentHash: z.ZodString;
1606
+ sizeBytes: z.ZodNumber;
1607
+ mediaType: z.ZodString;
1608
+ visibility: z.ZodEnum<{
1609
+ policy: "policy";
1610
+ verifier: "verifier";
1611
+ host_private: "host_private";
1612
+ }>;
1613
+ }, z.core.$strict>>;
1614
+ provenance: z.ZodObject<{
1615
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
1616
+ mappingHash: z.ZodNullable<z.ZodString>;
1617
+ }, z.core.$strict>;
1618
+ }, z.core.$strict>;
1619
+ supersedes: z.ZodNullable<z.ZodObject<{
1620
+ id: z.ZodString;
1621
+ contentHash: z.ZodString;
1622
+ revision: z.ZodNumber;
1623
+ }, z.core.$strict>>;
1624
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
1625
+ receivedAt: z.ZodString;
1626
+ contentHash: z.ZodString;
1627
+ }, z.core.$strict>, z.ZodObject<{
1628
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedbackRecord.v1">;
1629
+ id: z.ZodString;
1630
+ submission: z.ZodObject<{
1631
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedback.v1">;
1632
+ sourceId: z.ZodString;
1633
+ idempotencyKey: z.ZodString;
1634
+ exampleId: z.ZodString;
1635
+ attemptId: z.ZodString;
1636
+ expectedEvidenceHash: z.ZodNullable<z.ZodString>;
1637
+ occurredAt: z.ZodString;
1638
+ kind: z.ZodEnum<{
1639
+ outcome: "outcome";
1640
+ target_correction: "target_correction";
1641
+ ground_truth_correction: "ground_truth_correction";
1642
+ input_correction: "input_correction";
1643
+ family_resolution: "family_resolution";
1644
+ }>;
1645
+ value: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1646
+ note: z.ZodString;
1647
+ }, z.core.$strict>;
1648
+ status: z.ZodEnum<{
1649
+ pending_example: "pending_example";
1650
+ pending_review: "pending_review";
1651
+ applied: "applied";
1652
+ superseded: "superseded";
1653
+ rejected: "rejected";
1654
+ }>;
1655
+ evidence: z.ZodNullable<z.ZodObject<{
1656
+ id: z.ZodString;
1657
+ contentHash: z.ZodString;
1658
+ revision: z.ZodNumber;
1659
+ }, z.core.$strict>>;
1660
+ createdAt: z.ZodString;
1661
+ revision: z.ZodNumber;
1662
+ review: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1663
+ actorId: z.ZodString;
1664
+ decision: z.ZodNullable<z.ZodObject<{
1665
+ id: z.ZodString;
1666
+ contentHash: z.ZodString;
1667
+ revision: z.ZodNumber;
1668
+ }, z.core.$strict>>;
1669
+ note: z.ZodString;
1670
+ resolvedAt: z.ZodString;
1671
+ }, z.core.$strict>>>;
1672
+ }, z.core.$strict>, z.ZodObject<{
1673
+ schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
1674
+ id: z.ZodString;
1675
+ revision: z.ZodNumber;
1676
+ evidence: z.ZodObject<{
1677
+ id: z.ZodString;
1678
+ contentHash: z.ZodString;
1679
+ revision: z.ZodNumber;
1680
+ }, z.core.$strict>;
1681
+ supersedes: z.ZodNullable<z.ZodObject<{
1682
+ id: z.ZodString;
1683
+ contentHash: z.ZodString;
1684
+ revision: z.ZodNumber;
1685
+ }, z.core.$strict>>;
1686
+ actor: z.ZodObject<{
1687
+ kind: z.ZodEnum<{
1688
+ human: "human";
1689
+ qualified_policy: "qualified_policy";
1690
+ }>;
1691
+ id: z.ZodString;
1692
+ policy: z.ZodNullable<z.ZodObject<{
1693
+ id: z.ZodString;
1694
+ contentHash: z.ZodString;
1695
+ revision: z.ZodNumber;
1696
+ }, z.core.$strict>>;
1697
+ }, z.core.$strict>;
1698
+ evidenceValidity: z.ZodEnum<{
1699
+ pending: "pending";
1700
+ valid: "valid";
1701
+ invalid: "invalid";
1702
+ }>;
1703
+ taskAdmissibility: z.ZodEnum<{
1704
+ pending: "pending";
1705
+ approved: "approved";
1706
+ rejected: "rejected";
1707
+ }>;
1708
+ observedQuality: z.ZodEnum<{
1709
+ passed: "passed";
1710
+ failed: "failed";
1711
+ unavailable: "unavailable";
1712
+ unscored: "unscored";
1713
+ }>;
1714
+ targetApproval: z.ZodEnum<{
1715
+ pending: "pending";
1716
+ approved: "approved";
1717
+ rejected: "rejected";
1718
+ not_required: "not_required";
1719
+ }>;
1720
+ approvedTarget: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1721
+ grade: z.ZodNullable<z.ZodObject<{
1722
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1723
+ binding: z.ZodObject<{
1724
+ id: z.ZodString;
1725
+ contentHash: z.ZodString;
1726
+ revision: z.ZodNumber;
1727
+ }, z.core.$strict>;
1728
+ taskHash: z.ZodString;
1729
+ outputHash: z.ZodString;
1730
+ results: z.ZodArray<z.ZodObject<{
1731
+ graderId: z.ZodString;
1732
+ reward: z.ZodObject<{
1733
+ id: z.ZodString;
1734
+ contentHash: z.ZodString;
1735
+ revision: z.ZodNumber;
1736
+ }, z.core.$strict>;
1737
+ role: z.ZodEnum<{
1738
+ evaluation: "evaluation";
1739
+ training: "training";
1740
+ }>;
1741
+ status: z.ZodEnum<{
1742
+ pending: "pending";
1743
+ failed: "failed";
1744
+ scored: "scored";
1745
+ unavailable: "unavailable";
1746
+ }>;
1747
+ rawScore: z.ZodNullable<z.ZodNumber>;
1748
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1749
+ passed: z.ZodNullable<z.ZodBoolean>;
1750
+ evidenceHashes: z.ZodArray<z.ZodString>;
1751
+ message: z.ZodNullable<z.ZodString>;
1752
+ }, z.core.$strict>>;
1753
+ training: z.ZodObject<{
1754
+ status: z.ZodEnum<{
1755
+ scored: "scored";
1756
+ unscorable: "unscorable";
1757
+ not_configured: "not_configured";
1758
+ }>;
1759
+ score: z.ZodNullable<z.ZodNumber>;
1760
+ passed: z.ZodNullable<z.ZodBoolean>;
1761
+ }, z.core.$strict>;
1762
+ evaluation: z.ZodObject<{
1763
+ status: z.ZodEnum<{
1764
+ scored: "scored";
1765
+ unscorable: "unscorable";
1766
+ not_configured: "not_configured";
1767
+ }>;
1768
+ score: z.ZodNullable<z.ZodNumber>;
1769
+ passed: z.ZodNullable<z.ZodBoolean>;
1770
+ }, z.core.$strict>;
1771
+ contentHash: z.ZodString;
1772
+ }, z.core.$strict>>;
1773
+ targetGrade: z.ZodNullable<z.ZodObject<{
1774
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
1775
+ binding: z.ZodObject<{
1776
+ id: z.ZodString;
1777
+ contentHash: z.ZodString;
1778
+ revision: z.ZodNumber;
1779
+ }, z.core.$strict>;
1780
+ taskHash: z.ZodString;
1781
+ outputHash: z.ZodString;
1782
+ results: z.ZodArray<z.ZodObject<{
1783
+ graderId: z.ZodString;
1784
+ reward: z.ZodObject<{
1785
+ id: z.ZodString;
1786
+ contentHash: z.ZodString;
1787
+ revision: z.ZodNumber;
1788
+ }, z.core.$strict>;
1789
+ role: z.ZodEnum<{
1790
+ evaluation: "evaluation";
1791
+ training: "training";
1792
+ }>;
1793
+ status: z.ZodEnum<{
1794
+ pending: "pending";
1795
+ failed: "failed";
1796
+ scored: "scored";
1797
+ unavailable: "unavailable";
1798
+ }>;
1799
+ rawScore: z.ZodNullable<z.ZodNumber>;
1800
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1801
+ passed: z.ZodNullable<z.ZodBoolean>;
1802
+ evidenceHashes: z.ZodArray<z.ZodString>;
1803
+ message: z.ZodNullable<z.ZodString>;
1804
+ }, z.core.$strict>>;
1805
+ training: z.ZodObject<{
1806
+ status: z.ZodEnum<{
1807
+ scored: "scored";
1808
+ unscorable: "unscorable";
1809
+ not_configured: "not_configured";
1810
+ }>;
1811
+ score: z.ZodNullable<z.ZodNumber>;
1812
+ passed: z.ZodNullable<z.ZodBoolean>;
1813
+ }, z.core.$strict>;
1814
+ evaluation: z.ZodObject<{
1815
+ status: z.ZodEnum<{
1816
+ scored: "scored";
1817
+ unscorable: "unscorable";
1818
+ not_configured: "not_configured";
1819
+ }>;
1820
+ score: z.ZodNullable<z.ZodNumber>;
1821
+ passed: z.ZodNullable<z.ZodBoolean>;
1822
+ }, z.core.$strict>;
1823
+ contentHash: z.ZodString;
1824
+ }, z.core.$strict>>;
1825
+ note: z.ZodString;
1826
+ decidedAt: z.ZodString;
1827
+ contentHash: z.ZodString;
1828
+ }, z.core.$strict>, z.ZodObject<{
1829
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
1830
+ id: z.ZodString;
1831
+ revision: z.ZodLiteral<1>;
1832
+ taskDefinition: z.ZodObject<{
1833
+ id: z.ZodString;
1834
+ contentHash: z.ZodString;
1835
+ revision: z.ZodNumber;
1836
+ }, z.core.$strict>;
1837
+ rewardBinding: z.ZodObject<{
1838
+ id: z.ZodString;
1839
+ contentHash: z.ZodString;
1840
+ revision: z.ZodNumber;
1841
+ }, z.core.$strict>;
1842
+ purpose: z.ZodEnum<{
1843
+ evaluation: "evaluation";
1844
+ supervised_training: "supervised_training";
1845
+ reward_training: "reward_training";
1846
+ }>;
1847
+ examples: z.ZodArray<z.ZodObject<{
1848
+ evidence: z.ZodObject<{
1849
+ id: z.ZodString;
1850
+ contentHash: z.ZodString;
1851
+ revision: z.ZodNumber;
1852
+ }, z.core.$strict>;
1853
+ decision: z.ZodObject<{
1854
+ id: z.ZodString;
1855
+ contentHash: z.ZodString;
1856
+ revision: z.ZodNumber;
1857
+ }, z.core.$strict>;
1858
+ familyKey: z.ZodString;
1859
+ inputHash: z.ZodString;
1860
+ split: z.ZodEnum<{
1861
+ train: "train";
1862
+ validation: "validation";
1863
+ test: "test";
1864
+ frozen_eval: "frozen_eval";
1865
+ }>;
1866
+ }, z.core.$strict>>;
1867
+ sealedAt: z.ZodString;
1868
+ sealedBy: z.ZodString;
1869
+ contentHash: z.ZodString;
1870
+ }, z.core.$strict>, z.ZodObject<{
1871
+ schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
1872
+ id: z.ZodString;
1873
+ revision: z.ZodNumber;
1874
+ modelProjectId: z.ZodString;
1875
+ executionOwner: z.ZodEnum<{
1876
+ local: "local";
1877
+ hosted: "hosted";
1878
+ }>;
1879
+ enabled: z.ZodBoolean;
1880
+ sources: z.ZodArray<z.ZodObject<{
1881
+ id: z.ZodString;
1882
+ contentHash: z.ZodString;
1883
+ revision: z.ZodNumber;
1884
+ }, z.core.$strict>>;
1885
+ taskDefinition: z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ contentHash: z.ZodString;
1888
+ revision: z.ZodNumber;
1889
+ }, z.core.$strict>;
1890
+ rewardBinding: z.ZodObject<{
1891
+ id: z.ZodString;
1892
+ contentHash: z.ZodString;
1893
+ revision: z.ZodNumber;
1894
+ }, z.core.$strict>;
1895
+ admission: z.ZodObject<{
1896
+ mode: z.ZodEnum<{
1897
+ human: "human";
1898
+ qualified_automatic: "qualified_automatic";
1899
+ }>;
1900
+ qualification: z.ZodNullable<z.ZodObject<{
1901
+ id: z.ZodString;
1902
+ contentHash: z.ZodString;
1903
+ }, z.core.$strict>>;
1904
+ minimumApprovedExamples: z.ZodNumber;
1905
+ }, z.core.$strict>;
1906
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1907
+ kind: z.ZodLiteral<"manual">;
1908
+ }, z.core.$strict>, z.ZodObject<{
1909
+ kind: z.ZodLiteral<"approved_count">;
1910
+ }, z.core.$strict>, z.ZodObject<{
1911
+ kind: z.ZodLiteral<"schedule">;
1912
+ intervalSeconds: z.ZodNumber;
1913
+ }, z.core.$strict>, z.ZodObject<{
1914
+ kind: z.ZodLiteral<"upstream_accepted">;
1915
+ modelProjectId: z.ZodString;
1916
+ }, z.core.$strict>], "kind">;
1917
+ trainingParent: z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ contentHash: z.ZodString;
1920
+ }, z.core.$strict>;
1921
+ teacher: z.ZodNullable<z.ZodObject<{
1922
+ id: z.ZodString;
1923
+ contentHash: z.ZodString;
1924
+ }, z.core.$strict>>;
1925
+ training: z.ZodObject<{
1926
+ method: z.ZodEnum<{
1927
+ sft: "sft";
1928
+ dpo: "dpo";
1929
+ grpo: "grpo";
1930
+ ppo: "ppo";
1931
+ sdft: "sdft";
1932
+ opd: "opd";
1933
+ opsd: "opsd";
1934
+ sdpo: "sdpo";
1935
+ }>;
1936
+ recipe: z.ZodObject<{
1937
+ id: z.ZodString;
1938
+ contentHash: z.ZodString;
1939
+ }, z.core.$strict>;
1940
+ retentionEvaluation: z.ZodObject<{
1941
+ id: z.ZodString;
1942
+ contentHash: z.ZodString;
1943
+ }, z.core.$strict>;
1944
+ replayBatches: z.ZodArray<z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ contentHash: z.ZodString;
1947
+ }, z.core.$strict>>;
1948
+ }, z.core.$strict>;
1949
+ limits: z.ZodObject<{
1950
+ maxIterationSpendUsd: z.ZodNumber;
1951
+ maxDailySpendUsd: z.ZodNumber;
1952
+ cooldownSeconds: z.ZodNumber;
1953
+ maxRetries: z.ZodNumber;
1954
+ maxBatchExamples: z.ZodNumber;
1955
+ maxBacklogExamples: z.ZodNumber;
1956
+ }, z.core.$strict>;
1957
+ automation: z.ZodObject<{
1958
+ collect: z.ZodBoolean;
1959
+ train: z.ZodBoolean;
1960
+ accept: z.ZodBoolean;
1961
+ serve: z.ZodBoolean;
1962
+ }, z.core.$strict>;
1963
+ acceptance: z.ZodObject<{
1964
+ minimumScore: z.ZodNumber;
1965
+ maximumRetentionRegression: z.ZodNumber;
1966
+ requireImprovement: z.ZodBoolean;
1967
+ rollbackVersion: z.ZodNullable<z.ZodObject<{
1968
+ id: z.ZodString;
1969
+ contentHash: z.ZodString;
1970
+ }, z.core.$strict>>;
1971
+ }, z.core.$strict>;
1972
+ contentHash: z.ZodString;
1973
+ }, z.core.$strict>, z.ZodObject<{
1974
+ schemaVersion: z.ZodLiteral<"openpond.learningIteration.v1">;
1975
+ id: z.ZodString;
1976
+ revision: z.ZodNumber;
1977
+ policy: z.ZodObject<{
1978
+ id: z.ZodString;
1979
+ contentHash: z.ZodString;
1980
+ revision: z.ZodNumber;
1981
+ }, z.core.$strict>;
1982
+ status: z.ZodEnum<{
1983
+ failed: "failed";
1984
+ cancelled: "cancelled";
1985
+ accepted: "accepted";
1986
+ training: "training";
1987
+ rejected: "rejected";
1988
+ waiting_for_data: "waiting_for_data";
1989
+ waiting_for_review: "waiting_for_review";
1990
+ ready: "ready";
1991
+ evaluating: "evaluating";
1992
+ candidate_ready: "candidate_ready";
1993
+ paused: "paused";
1994
+ cancelling: "cancelling";
1995
+ }>;
1996
+ triggerIdentity: z.ZodString;
1997
+ batch: z.ZodNullable<z.ZodObject<{
1998
+ id: z.ZodString;
1999
+ contentHash: z.ZodString;
2000
+ revision: z.ZodNumber;
2001
+ }, z.core.$strict>>;
2002
+ sourceWatermarks: z.ZodRecord<z.ZodString, z.ZodNumber>;
2003
+ trainingParent: z.ZodObject<{
2004
+ id: z.ZodString;
2005
+ contentHash: z.ZodString;
2006
+ }, z.core.$strict>;
2007
+ teacher: z.ZodNullable<z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ contentHash: z.ZodString;
2010
+ }, z.core.$strict>>;
2011
+ upstreamEvent: z.ZodNullable<z.ZodObject<{
2012
+ id: z.ZodString;
2013
+ contentHash: z.ZodString;
2014
+ }, z.core.$strict>>;
2015
+ trainingJob: z.ZodNullable<z.ZodObject<{
2016
+ id: z.ZodString;
2017
+ contentHash: z.ZodString;
2018
+ }, z.core.$strict>>;
2019
+ evaluationJob: z.ZodNullable<z.ZodObject<{
2020
+ id: z.ZodString;
2021
+ contentHash: z.ZodString;
2022
+ }, z.core.$strict>>;
2023
+ candidateVersion: z.ZodNullable<z.ZodObject<{
2024
+ id: z.ZodString;
2025
+ contentHash: z.ZodString;
2026
+ }, z.core.$strict>>;
2027
+ dispatchId: z.ZodString;
2028
+ retryCount: z.ZodNumber;
2029
+ spendUsd: z.ZodNumber;
2030
+ failure: z.ZodNullable<z.ZodObject<{
2031
+ code: z.ZodString;
2032
+ message: z.ZodString;
2033
+ }, z.core.$strict>>;
2034
+ createdAt: z.ZodString;
2035
+ updatedAt: z.ZodString;
2036
+ }, z.core.$strict>, z.ZodObject<{
2037
+ schemaVersion: z.ZodLiteral<"openpond.taskGradeRun.v1">;
2038
+ id: z.ZodString;
2039
+ revision: z.ZodNumber;
2040
+ evidence: z.ZodObject<{
2041
+ id: z.ZodString;
2042
+ contentHash: z.ZodString;
2043
+ revision: z.ZodNumber;
2044
+ }, z.core.$strict>;
2045
+ binding: z.ZodObject<{
2046
+ id: z.ZodString;
2047
+ contentHash: z.ZodString;
2048
+ revision: z.ZodNumber;
2049
+ }, z.core.$strict>;
2050
+ target: z.ZodEnum<{
2051
+ observed: "observed";
2052
+ proposed_target: "proposed_target";
2053
+ }>;
2054
+ output: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2055
+ status: z.ZodEnum<{
2056
+ failed: "failed";
2057
+ completed: "completed";
2058
+ cancelled: "cancelled";
2059
+ running: "running";
2060
+ cancelling: "cancelling";
2061
+ queued: "queued";
2062
+ }>;
2063
+ composition: z.ZodNullable<z.ZodObject<{
2064
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2065
+ binding: z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ contentHash: z.ZodString;
2068
+ revision: z.ZodNumber;
2069
+ }, z.core.$strict>;
2070
+ taskHash: z.ZodString;
2071
+ outputHash: z.ZodString;
2072
+ results: z.ZodArray<z.ZodObject<{
2073
+ graderId: z.ZodString;
2074
+ reward: z.ZodObject<{
2075
+ id: z.ZodString;
2076
+ contentHash: z.ZodString;
2077
+ revision: z.ZodNumber;
2078
+ }, z.core.$strict>;
2079
+ role: z.ZodEnum<{
2080
+ evaluation: "evaluation";
2081
+ training: "training";
2082
+ }>;
2083
+ status: z.ZodEnum<{
2084
+ pending: "pending";
2085
+ failed: "failed";
2086
+ scored: "scored";
2087
+ unavailable: "unavailable";
2088
+ }>;
2089
+ rawScore: z.ZodNullable<z.ZodNumber>;
2090
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
2091
+ passed: z.ZodNullable<z.ZodBoolean>;
2092
+ evidenceHashes: z.ZodArray<z.ZodString>;
2093
+ message: z.ZodNullable<z.ZodString>;
2094
+ }, z.core.$strict>>;
2095
+ training: z.ZodObject<{
2096
+ status: z.ZodEnum<{
2097
+ scored: "scored";
2098
+ unscorable: "unscorable";
2099
+ not_configured: "not_configured";
2100
+ }>;
2101
+ score: z.ZodNullable<z.ZodNumber>;
2102
+ passed: z.ZodNullable<z.ZodBoolean>;
2103
+ }, z.core.$strict>;
2104
+ evaluation: z.ZodObject<{
2105
+ status: z.ZodEnum<{
2106
+ scored: "scored";
2107
+ unscorable: "unscorable";
2108
+ not_configured: "not_configured";
2109
+ }>;
2110
+ score: z.ZodNullable<z.ZodNumber>;
2111
+ passed: z.ZodNullable<z.ZodBoolean>;
2112
+ }, z.core.$strict>;
2113
+ contentHash: z.ZodString;
2114
+ }, z.core.$strict>>;
2115
+ leaseOwner: z.ZodNullable<z.ZodString>;
2116
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
2117
+ attemptCount: z.ZodNumber;
2118
+ timeoutMs: z.ZodNumber;
2119
+ maximumSpendUsd: z.ZodNumber;
2120
+ failure: z.ZodNullable<z.ZodString>;
2121
+ createdAt: z.ZodString;
2122
+ updatedAt: z.ZodString;
2123
+ }, z.core.$strict>]>;
2124
+ export type TaskDefinition = z.infer<typeof TaskDefinitionSchema>;
2125
+ export type LearningSource = z.infer<typeof LearningSourceSchema>;
2126
+ export type TaskExampleSubmission = z.infer<typeof TaskExampleSubmissionSchema>;
2127
+ export type TaskEvidence = z.infer<typeof TaskEvidenceSchema>;
2128
+ export type TaskFeedbackSubmission = z.infer<typeof TaskFeedbackSubmissionSchema>;
2129
+ export type TaskFeedback = z.infer<typeof TaskFeedbackSchema>;
2130
+ export type TaskAdmissionDecision = z.infer<typeof TaskAdmissionDecisionSchema>;
2131
+ export type TaskBatch = z.infer<typeof TaskBatchSchema>;
2132
+ export type LearningPolicy = z.infer<typeof LearningPolicySchema>;
2133
+ export type LearningIteration = z.infer<typeof LearningIterationSchema>;
2134
+ export type TaskGradeRun = z.infer<typeof TaskGradeRunSchema>;
2135
+ export type LearningResource = z.infer<typeof LearningResourceSchema>;
2136
+ export type LearningRevisionRef = z.infer<typeof LearningRevisionRefSchema>;
2137
+ export declare function learningRef(resource: {
2138
+ id: string;
2139
+ revision: number;
2140
+ contentHash: string;
2141
+ }): LearningRevisionRef;
2142
+ export declare function sameLearningRef(left: LearningRevisionRef, right: LearningRevisionRef): boolean;
2143
+ export declare function sealLearningContent<T extends Record<string, unknown>>(content: T): T & {
2144
+ contentHash: string;
2145
+ };
2146
+ export declare function assertLearningContentHash(resource: {
2147
+ contentHash: string;
2148
+ }): void;
2149
+ //# sourceMappingURL=contracts.d.ts.map