@openpond/evals 0.11.17 → 0.11.19

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 (134) hide show
  1. package/dist/connected-evidence/contracts.js +14 -4
  2. package/dist/connected-evidence/imports.js +77 -17
  3. package/dist/connected-evidence/normalize.js +4 -3
  4. package/dist/connected-evidence/sources/claude-branches.js +52 -0
  5. package/dist/connected-evidence/sources/claude-code.js +7 -29
  6. package/dist/connected-evidence/sources/codex-authorization.js +40 -0
  7. package/dist/connected-evidence/sources/codex.js +7 -3
  8. package/dist/connected-evidence/sources/grok-build.js +137 -0
  9. package/dist/connected-evidence/sources/opencode.js +101 -0
  10. package/dist/connected-evidence/sources/pi.js +187 -0
  11. package/dist/graders.js +11 -1
  12. package/dist/learning/budgeted-reward-fixtures.js +1 -0
  13. package/dist/learning/contracts.js +10 -0
  14. package/dist/learning/index.js +1 -0
  15. package/dist/learning/model-judge.js +22 -5
  16. package/dist/learning/reward-calibration-closure.js +110 -0
  17. package/dist/learning/reward-calibration.js +20 -10
  18. package/dist/learning/reward-checks.js +1 -0
  19. package/dist/native-conversations/appimage-runtime.js +131 -0
  20. package/dist/native-conversations/collector-branches.js +79 -0
  21. package/dist/native-conversations/collector-contracts.js +9 -0
  22. package/dist/native-conversations/collector-destinations.js +27 -0
  23. package/dist/native-conversations/collector-errors.js +42 -0
  24. package/dist/native-conversations/collector-progress.js +114 -0
  25. package/dist/native-conversations/collector-store.js +247 -0
  26. package/dist/native-conversations/collector-sync-requests.js +52 -0
  27. package/dist/native-conversations/collector.js +322 -0
  28. package/dist/native-conversations/contracts.js +11 -0
  29. package/dist/native-conversations/database.js +149 -0
  30. package/dist/native-conversations/discovery.js +135 -0
  31. package/dist/native-conversations/history.js +298 -0
  32. package/dist/native-conversations/index.js +11 -0
  33. package/dist/native-conversations/location.js +29 -0
  34. package/dist/native-conversations/openclaw-cold-archive.js +91 -0
  35. package/dist/native-conversations/openclaw-database.js +130 -0
  36. package/dist/native-conversations/source-locations.js +112 -0
  37. package/dist/native-conversations/supervisor.js +208 -0
  38. package/dist/rewards.js +1 -1
  39. package/dist/types/connected-evidence/contracts.d.ts +15 -0
  40. package/dist/types/connected-evidence/contracts.d.ts.map +1 -1
  41. package/dist/types/connected-evidence/imports.d.ts +6 -0
  42. package/dist/types/connected-evidence/imports.d.ts.map +1 -1
  43. package/dist/types/connected-evidence/normalize.d.ts +4 -0
  44. package/dist/types/connected-evidence/normalize.d.ts.map +1 -1
  45. package/dist/types/connected-evidence/sources/claude-branches.d.ts +19 -0
  46. package/dist/types/connected-evidence/sources/claude-branches.d.ts.map +1 -0
  47. package/dist/types/connected-evidence/sources/claude-code.d.ts +5 -1
  48. package/dist/types/connected-evidence/sources/claude-code.d.ts.map +1 -1
  49. package/dist/types/connected-evidence/sources/codex-authorization.d.ts +18 -0
  50. package/dist/types/connected-evidence/sources/codex-authorization.d.ts.map +1 -0
  51. package/dist/types/connected-evidence/sources/codex.d.ts +5 -1
  52. package/dist/types/connected-evidence/sources/codex.d.ts.map +1 -1
  53. package/dist/types/connected-evidence/sources/grok-build.d.ts +79 -0
  54. package/dist/types/connected-evidence/sources/grok-build.d.ts.map +1 -0
  55. package/dist/types/connected-evidence/sources/history.d.ts +10 -2
  56. package/dist/types/connected-evidence/sources/history.d.ts.map +1 -1
  57. package/dist/types/connected-evidence/sources/opencode.d.ts +78 -0
  58. package/dist/types/connected-evidence/sources/opencode.d.ts.map +1 -0
  59. package/dist/types/connected-evidence/sources/pi.d.ts +79 -0
  60. package/dist/types/connected-evidence/sources/pi.d.ts.map +1 -0
  61. package/dist/types/graders.d.ts +81 -0
  62. package/dist/types/graders.d.ts.map +1 -1
  63. package/dist/types/learning/budgeted-reward-fixtures.d.ts +2 -1
  64. package/dist/types/learning/budgeted-reward-fixtures.d.ts.map +1 -1
  65. package/dist/types/learning/contracts.d.ts +167 -0
  66. package/dist/types/learning/contracts.d.ts.map +1 -1
  67. package/dist/types/learning/index.d.ts +1 -0
  68. package/dist/types/learning/index.d.ts.map +1 -1
  69. package/dist/types/learning/judge-budget.d.ts +3 -0
  70. package/dist/types/learning/judge-budget.d.ts.map +1 -1
  71. package/dist/types/learning/model-judge.d.ts +6 -1
  72. package/dist/types/learning/model-judge.d.ts.map +1 -1
  73. package/dist/types/learning/operations.d.ts +44 -0
  74. package/dist/types/learning/operations.d.ts.map +1 -1
  75. package/dist/types/learning/repository.d.ts +81 -0
  76. package/dist/types/learning/repository.d.ts.map +1 -1
  77. package/dist/types/learning/reward-calibration-closure.d.ts +2323 -0
  78. package/dist/types/learning/reward-calibration-closure.d.ts.map +1 -0
  79. package/dist/types/learning/reward-calibration.d.ts +1 -1
  80. package/dist/types/learning/reward-calibration.d.ts.map +1 -1
  81. package/dist/types/learning/reward-checks.d.ts +35 -0
  82. package/dist/types/learning/reward-checks.d.ts.map +1 -1
  83. package/dist/types/learning/transport.d.ts +103 -0
  84. package/dist/types/learning/transport.d.ts.map +1 -1
  85. package/dist/types/native-conversations/appimage-runtime.d.ts +12 -0
  86. package/dist/types/native-conversations/appimage-runtime.d.ts.map +1 -0
  87. package/dist/types/native-conversations/collector-branches.d.ts +22 -0
  88. package/dist/types/native-conversations/collector-branches.d.ts.map +1 -0
  89. package/dist/types/native-conversations/collector-contracts.d.ts +88 -0
  90. package/dist/types/native-conversations/collector-contracts.d.ts.map +1 -0
  91. package/dist/types/native-conversations/collector-destinations.d.ts +18 -0
  92. package/dist/types/native-conversations/collector-destinations.d.ts.map +1 -0
  93. package/dist/types/native-conversations/collector-errors.d.ts +13 -0
  94. package/dist/types/native-conversations/collector-errors.d.ts.map +1 -0
  95. package/dist/types/native-conversations/collector-progress.d.ts +24 -0
  96. package/dist/types/native-conversations/collector-progress.d.ts.map +1 -0
  97. package/dist/types/native-conversations/collector-store.d.ts +31 -0
  98. package/dist/types/native-conversations/collector-store.d.ts.map +1 -0
  99. package/dist/types/native-conversations/collector-sync-requests.d.ts +25 -0
  100. package/dist/types/native-conversations/collector-sync-requests.d.ts.map +1 -0
  101. package/dist/types/native-conversations/collector.d.ts +8 -0
  102. package/dist/types/native-conversations/collector.d.ts.map +1 -0
  103. package/dist/types/native-conversations/contracts.d.ts +47 -0
  104. package/dist/types/native-conversations/contracts.d.ts.map +1 -0
  105. package/dist/types/native-conversations/database.d.ts +14 -0
  106. package/dist/types/native-conversations/database.d.ts.map +1 -0
  107. package/dist/types/native-conversations/discovery.d.ts +9 -0
  108. package/dist/types/native-conversations/discovery.d.ts.map +1 -0
  109. package/dist/types/native-conversations/history.d.ts +23 -0
  110. package/dist/types/native-conversations/history.d.ts.map +1 -0
  111. package/dist/types/native-conversations/index.d.ts +12 -0
  112. package/dist/types/native-conversations/index.d.ts.map +1 -0
  113. package/dist/types/native-conversations/location.d.ts +3 -0
  114. package/dist/types/native-conversations/location.d.ts.map +1 -0
  115. package/dist/types/native-conversations/openclaw-cold-archive.d.ts +8 -0
  116. package/dist/types/native-conversations/openclaw-cold-archive.d.ts.map +1 -0
  117. package/dist/types/native-conversations/openclaw-database.d.ts +14 -0
  118. package/dist/types/native-conversations/openclaw-database.d.ts.map +1 -0
  119. package/dist/types/native-conversations/source-locations.d.ts +8 -0
  120. package/dist/types/native-conversations/source-locations.d.ts.map +1 -0
  121. package/dist/types/native-conversations/supervisor.d.ts +21 -0
  122. package/dist/types/native-conversations/supervisor.d.ts.map +1 -0
  123. package/dist/types/rewards.d.ts +50 -0
  124. package/dist/types/rewards.d.ts.map +1 -1
  125. package/dist/types/telemetry-analysis.d.ts +1 -1
  126. package/dist/types/telemetry-bundle.d.ts +2 -2
  127. package/dist/types/telemetry-catalog.d.ts +21 -21
  128. package/dist/types/telemetry.d.ts +2 -2
  129. package/package.json +15 -3
  130. package/schemas/learning/v1/command-request.schema.json +122 -91
  131. package/schemas/learning/v1/decision.schema.json +63 -0
  132. package/schemas/learning/v1/grade.schema.json +91 -0
  133. package/schemas/learning/v1/reward_check.schema.json +91 -0
  134. package/schemas/learning/v1/source.schema.json +28 -0
@@ -0,0 +1,2323 @@
1
+ import { z } from "zod";
2
+ import { type LearningRevisionRef } from "./contracts.js";
3
+ import { type LearningTransaction } from "./repository.js";
4
+ export { learningRef, LearningRevisionRefSchema } from "./contracts.js";
5
+ export { RewardFixtureSchema } from "./reward-checks.js";
6
+ export declare const MAX_REWARD_CALIBRATION_CLOSURE_BYTES = 524288;
7
+ declare const ContentSchema: z.ZodObject<{
8
+ schemaVersion: z.ZodLiteral<"openpond.rewardCalibrationClosure.v1">;
9
+ reward: z.ZodObject<{
10
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
11
+ id: z.ZodString;
12
+ revision: z.ZodNumber;
13
+ name: z.ZodString;
14
+ description: z.ZodString;
15
+ feedbackKey: z.ZodOptional<z.ZodString>;
16
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
17
+ kind: z.ZodEnum<{
18
+ content: "content";
19
+ schema: "schema";
20
+ artifact: "artifact";
21
+ runtime_event: "runtime_event";
22
+ state: "state";
23
+ }>;
24
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ kind: z.ZodLiteral<"model_judge">;
27
+ rubricRef: z.ZodObject<{
28
+ id: z.ZodString;
29
+ path: z.ZodString;
30
+ contentHash: z.ZodString;
31
+ sizeBytes: z.ZodNumber;
32
+ mediaType: z.ZodString;
33
+ visibility: z.ZodEnum<{
34
+ policy: "policy";
35
+ verifier: "verifier";
36
+ host_private: "host_private";
37
+ }>;
38
+ }, z.core.$strict>;
39
+ calibrationStatus: z.ZodEnum<{
40
+ pending: "pending";
41
+ passed: "passed";
42
+ failed: "failed";
43
+ }>;
44
+ model: z.ZodOptional<z.ZodObject<{
45
+ providerId: z.ZodString;
46
+ modelId: z.ZodString;
47
+ revision: z.ZodNullable<z.ZodString>;
48
+ }, z.core.$strict>>;
49
+ temperature: z.ZodOptional<z.ZodNumber>;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ exportName: z.ZodOptional<z.ZodString>;
52
+ timeoutMs: z.ZodNumber;
53
+ networkPolicy: z.ZodLiteral<"none">;
54
+ kind: z.ZodLiteral<"custom_verifier">;
55
+ runtime: z.ZodOptional<z.ZodEnum<{
56
+ isolated_javascript: "isolated_javascript";
57
+ sandbox_process: "sandbox_process";
58
+ }>>;
59
+ verifierRef: z.ZodObject<{
60
+ id: z.ZodString;
61
+ path: z.ZodString;
62
+ contentHash: z.ZodString;
63
+ sizeBytes: z.ZodNumber;
64
+ mediaType: z.ZodString;
65
+ visibility: z.ZodEnum<{
66
+ policy: "policy";
67
+ verifier: "verifier";
68
+ host_private: "host_private";
69
+ }>;
70
+ }, z.core.$strict>;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ kind: z.ZodLiteral<"human">;
73
+ form: z.ZodOptional<z.ZodObject<{
74
+ schemaVersion: z.ZodLiteral<"openpond.humanForm.v1">;
75
+ mode: z.ZodEnum<{
76
+ individual: "individual";
77
+ pairwise: "pairwise";
78
+ }>;
79
+ instructions: z.ZodString;
80
+ criteria: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
81
+ id: z.ZodString;
82
+ label: z.ZodString;
83
+ instructions: z.ZodString;
84
+ required: z.ZodBoolean;
85
+ allowAbstain: z.ZodBoolean;
86
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
87
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
89
+ description: z.ZodString;
90
+ }, z.core.$strict>>>;
91
+ kind: z.ZodLiteral<"score">;
92
+ minimum: z.ZodNumber;
93
+ maximum: z.ZodNumber;
94
+ step: z.ZodNumber;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ id: z.ZodString;
97
+ label: z.ZodString;
98
+ instructions: z.ZodString;
99
+ required: z.ZodBoolean;
100
+ allowAbstain: z.ZodBoolean;
101
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
102
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
104
+ description: z.ZodString;
105
+ }, z.core.$strict>>>;
106
+ kind: z.ZodLiteral<"category">;
107
+ options: z.ZodArray<z.ZodString>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ id: z.ZodString;
110
+ label: z.ZodString;
111
+ instructions: z.ZodString;
112
+ required: z.ZodBoolean;
113
+ allowAbstain: z.ZodBoolean;
114
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
115
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
117
+ description: z.ZodString;
118
+ }, z.core.$strict>>>;
119
+ kind: z.ZodLiteral<"boolean">;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ id: z.ZodString;
122
+ label: z.ZodString;
123
+ instructions: z.ZodString;
124
+ required: z.ZodBoolean;
125
+ allowAbstain: z.ZodBoolean;
126
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
127
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
129
+ description: z.ZodString;
130
+ }, z.core.$strict>>>;
131
+ kind: z.ZodLiteral<"text">;
132
+ minimumLength: z.ZodOptional<z.ZodNumber>;
133
+ maximumLength: z.ZodNumber;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ id: z.ZodString;
136
+ label: z.ZodString;
137
+ instructions: z.ZodString;
138
+ required: z.ZodBoolean;
139
+ allowAbstain: z.ZodBoolean;
140
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
141
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
143
+ description: z.ZodString;
144
+ }, z.core.$strict>>>;
145
+ kind: z.ZodLiteral<"preference">;
146
+ requireStrength: z.ZodOptional<z.ZodBoolean>;
147
+ allowTie: z.ZodBoolean;
148
+ }, z.core.$strict>], "kind">>;
149
+ }, z.core.$strict>>;
150
+ rubricRef: z.ZodObject<{
151
+ id: z.ZodString;
152
+ path: z.ZodString;
153
+ contentHash: z.ZodString;
154
+ sizeBytes: z.ZodNumber;
155
+ mediaType: z.ZodString;
156
+ visibility: z.ZodEnum<{
157
+ policy: "policy";
158
+ verifier: "verifier";
159
+ host_private: "host_private";
160
+ }>;
161
+ }, z.core.$strict>;
162
+ reviewerRole: z.ZodString;
163
+ }, z.core.$strict>, z.ZodObject<{
164
+ kind: z.ZodLiteral<"learned_model">;
165
+ modelVersion: z.ZodObject<{
166
+ id: z.ZodString;
167
+ contentHash: z.ZodString;
168
+ }, z.core.$strict>;
169
+ inputContract: z.ZodObject<{
170
+ id: z.ZodString;
171
+ path: z.ZodString;
172
+ contentHash: z.ZodString;
173
+ sizeBytes: z.ZodNumber;
174
+ mediaType: z.ZodString;
175
+ visibility: z.ZodEnum<{
176
+ policy: "policy";
177
+ verifier: "verifier";
178
+ host_private: "host_private";
179
+ }>;
180
+ }, z.core.$strict>;
181
+ }, z.core.$strict>]>;
182
+ rawScore: z.ZodObject<{
183
+ minimum: z.ZodNumber;
184
+ maximum: z.ZodNumber;
185
+ }, z.core.$strict>;
186
+ assets: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ path: z.ZodString;
189
+ contentHash: z.ZodString;
190
+ sizeBytes: z.ZodNumber;
191
+ mediaType: z.ZodString;
192
+ visibility: z.ZodEnum<{
193
+ policy: "policy";
194
+ verifier: "verifier";
195
+ host_private: "host_private";
196
+ }>;
197
+ }, z.core.$strict>>;
198
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
199
+ id: z.ZodString;
200
+ path: z.ZodString;
201
+ contentHash: z.ZodString;
202
+ sizeBytes: z.ZodNumber;
203
+ mediaType: z.ZodString;
204
+ visibility: z.ZodEnum<{
205
+ policy: "policy";
206
+ verifier: "verifier";
207
+ host_private: "host_private";
208
+ }>;
209
+ }, z.core.$strict>>;
210
+ calibrationCheckRef: z.ZodOptional<z.ZodObject<{
211
+ id: z.ZodString;
212
+ contentHash: z.ZodString;
213
+ revision: z.ZodNumber;
214
+ }, z.core.$strict>>;
215
+ contentHash: z.ZodString;
216
+ }, z.core.$strict>;
217
+ draft: z.ZodDiscriminatedUnion<[z.ZodObject<{
218
+ id: z.ZodString;
219
+ targetId: z.ZodString;
220
+ baseRelease: z.ZodNullable<z.ZodObject<{
221
+ id: z.ZodString;
222
+ contentHash: z.ZodString;
223
+ revision: z.ZodNumber;
224
+ }, z.core.$strict>>;
225
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
226
+ targetKind: z.ZodLiteral<"definition">;
227
+ fields: z.ZodObject<{
228
+ name: z.ZodString;
229
+ description: z.ZodString;
230
+ instructions: z.ZodString;
231
+ input: z.ZodString;
232
+ output: z.ZodString;
233
+ familyNamespace: z.ZodString;
234
+ sources: z.ZodArray<z.ZodObject<{
235
+ graderId: z.ZodString;
236
+ reward: z.ZodObject<{
237
+ id: z.ZodString;
238
+ contentHash: z.ZodString;
239
+ revision: z.ZodNumber;
240
+ }, z.core.$strict>;
241
+ role: z.ZodEnum<{
242
+ evaluation: "evaluation";
243
+ training: "training";
244
+ }>;
245
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
246
+ kind: z.ZodLiteral<"identity">;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"linear">;
249
+ minimum: z.ZodNumber;
250
+ maximum: z.ZodNumber;
251
+ direction: z.ZodEnum<{
252
+ higher: "higher";
253
+ lower: "lower";
254
+ }>;
255
+ }, z.core.$strict>], "kind">;
256
+ weight: z.ZodNumber;
257
+ required: z.ZodBoolean;
258
+ hardGate: z.ZodBoolean;
259
+ privileged: z.ZodBoolean;
260
+ fixtureRefs: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ contentHash: z.ZodString;
263
+ }, z.core.$strict>>;
264
+ }, z.core.$strict>>;
265
+ recipeRef: z.ZodOptional<z.ZodObject<{
266
+ id: z.ZodString;
267
+ contentHash: z.ZodString;
268
+ revision: z.ZodNumber;
269
+ }, z.core.$strict>>;
270
+ }, z.core.$strict>;
271
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
272
+ revision: z.ZodNumber;
273
+ status: z.ZodEnum<{
274
+ draft: "draft";
275
+ archived: "archived";
276
+ published: "published";
277
+ }>;
278
+ publishedRelease: z.ZodNullable<z.ZodObject<{
279
+ id: z.ZodString;
280
+ contentHash: z.ZodString;
281
+ revision: z.ZodNumber;
282
+ }, z.core.$strict>>;
283
+ createdAt: z.ZodString;
284
+ updatedAt: z.ZodString;
285
+ contentHash: z.ZodString;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ id: z.ZodString;
288
+ targetId: z.ZodString;
289
+ baseRelease: z.ZodNullable<z.ZodObject<{
290
+ id: z.ZodString;
291
+ contentHash: z.ZodString;
292
+ revision: z.ZodNumber;
293
+ }, z.core.$strict>>;
294
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
295
+ targetKind: z.ZodLiteral<"reward">;
296
+ fields: z.ZodObject<{
297
+ name: z.ZodString;
298
+ description: z.ZodString;
299
+ feedbackKey: z.ZodOptional<z.ZodString>;
300
+ kind: z.ZodEnum<{
301
+ content: "content";
302
+ schema: "schema";
303
+ artifact: "artifact";
304
+ runtime_event: "runtime_event";
305
+ state: "state";
306
+ model_judge: "model_judge";
307
+ custom_verifier: "custom_verifier";
308
+ human: "human";
309
+ learned_model: "learned_model";
310
+ }>;
311
+ fields: z.ZodString;
312
+ outputField: z.ZodString;
313
+ expectedField: z.ZodString;
314
+ expectedValue: z.ZodString;
315
+ schema: z.ZodString;
316
+ reference: z.ZodString;
317
+ events: z.ZodString;
318
+ code: z.ZodString;
319
+ exportName: z.ZodString;
320
+ timeout: z.ZodString;
321
+ verifierRuntime: z.ZodOptional<z.ZodEnum<{
322
+ isolated_javascript: "isolated_javascript";
323
+ sandbox_process: "sandbox_process";
324
+ }>>;
325
+ rubric: z.ZodString;
326
+ providerId: z.ZodString;
327
+ modelId: z.ZodString;
328
+ modelRevision: z.ZodString;
329
+ temperature: z.ZodString;
330
+ reviewerRole: z.ZodString;
331
+ humanForm: z.ZodOptional<z.ZodString>;
332
+ learnedId: z.ZodString;
333
+ learnedHash: z.ZodString;
334
+ inputContract: z.ZodString;
335
+ minimum: z.ZodString;
336
+ maximum: z.ZodString;
337
+ fixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ id: z.ZodString;
339
+ name: z.ZodString;
340
+ input: z.ZodString;
341
+ output: z.ZodString;
342
+ expectedOutput: z.ZodString;
343
+ evaluatorContext: z.ZodString;
344
+ artifactRefs: z.ZodArray<z.ZodString>;
345
+ runtimeEventRefs: z.ZodArray<z.ZodString>;
346
+ infrastructureError: z.ZodString;
347
+ expectedStatus: z.ZodEnum<{
348
+ pending: "pending";
349
+ failed: "failed";
350
+ scored: "scored";
351
+ unavailable: "unavailable";
352
+ }>;
353
+ minimumScore: z.ZodString;
354
+ maximumScore: z.ZodString;
355
+ expectedPassed: z.ZodEnum<{
356
+ any: "any";
357
+ true: "true";
358
+ false: "false";
359
+ }>;
360
+ sourceLabel: z.ZodOptional<z.ZodObject<{
361
+ evidence: z.ZodObject<{
362
+ id: z.ZodString;
363
+ contentHash: z.ZodString;
364
+ revision: z.ZodNumber;
365
+ }, z.core.$strict>;
366
+ feedback: z.ZodObject<{
367
+ id: z.ZodString;
368
+ revision: z.ZodNumber;
369
+ }, z.core.$strict>;
370
+ }, z.core.$strict>>;
371
+ }, z.core.$strict>>>;
372
+ }, z.core.$strict>;
373
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
374
+ revision: z.ZodNumber;
375
+ status: z.ZodEnum<{
376
+ draft: "draft";
377
+ archived: "archived";
378
+ published: "published";
379
+ }>;
380
+ publishedRelease: z.ZodNullable<z.ZodObject<{
381
+ id: z.ZodString;
382
+ contentHash: z.ZodString;
383
+ revision: z.ZodNumber;
384
+ }, z.core.$strict>>;
385
+ createdAt: z.ZodString;
386
+ updatedAt: z.ZodString;
387
+ contentHash: z.ZodString;
388
+ }, z.core.$strict>, z.ZodObject<{
389
+ id: z.ZodString;
390
+ targetId: z.ZodString;
391
+ baseRelease: z.ZodNullable<z.ZodObject<{
392
+ id: z.ZodString;
393
+ contentHash: z.ZodString;
394
+ revision: z.ZodNumber;
395
+ }, z.core.$strict>>;
396
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
397
+ targetKind: z.ZodLiteral<"binding">;
398
+ fields: z.ZodObject<{
399
+ name: z.ZodString;
400
+ description: z.ZodString;
401
+ sources: z.ZodArray<z.ZodObject<{
402
+ graderId: z.ZodString;
403
+ reward: z.ZodObject<{
404
+ id: z.ZodString;
405
+ contentHash: z.ZodString;
406
+ revision: z.ZodNumber;
407
+ }, z.core.$strict>;
408
+ role: z.ZodEnum<{
409
+ evaluation: "evaluation";
410
+ training: "training";
411
+ }>;
412
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
413
+ kind: z.ZodLiteral<"identity">;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"linear">;
416
+ minimum: z.ZodNumber;
417
+ maximum: z.ZodNumber;
418
+ direction: z.ZodEnum<{
419
+ higher: "higher";
420
+ lower: "lower";
421
+ }>;
422
+ }, z.core.$strict>], "kind">;
423
+ weight: z.ZodNumber;
424
+ required: z.ZodBoolean;
425
+ hardGate: z.ZodBoolean;
426
+ privileged: z.ZodBoolean;
427
+ fixtureRefs: z.ZodArray<z.ZodObject<{
428
+ id: z.ZodString;
429
+ contentHash: z.ZodString;
430
+ }, z.core.$strict>>;
431
+ }, z.core.$strict>>;
432
+ }, z.core.$strict>;
433
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
434
+ revision: z.ZodNumber;
435
+ status: z.ZodEnum<{
436
+ draft: "draft";
437
+ archived: "archived";
438
+ published: "published";
439
+ }>;
440
+ publishedRelease: z.ZodNullable<z.ZodObject<{
441
+ id: z.ZodString;
442
+ contentHash: z.ZodString;
443
+ revision: z.ZodNumber;
444
+ }, z.core.$strict>>;
445
+ createdAt: z.ZodString;
446
+ updatedAt: z.ZodString;
447
+ contentHash: z.ZodString;
448
+ }, z.core.$strict>], "targetKind">;
449
+ base: z.ZodNullable<z.ZodObject<{
450
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
451
+ id: z.ZodString;
452
+ revision: z.ZodNumber;
453
+ name: z.ZodString;
454
+ description: z.ZodString;
455
+ feedbackKey: z.ZodOptional<z.ZodString>;
456
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
457
+ kind: z.ZodEnum<{
458
+ content: "content";
459
+ schema: "schema";
460
+ artifact: "artifact";
461
+ runtime_event: "runtime_event";
462
+ state: "state";
463
+ }>;
464
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
465
+ }, z.core.$strict>, z.ZodObject<{
466
+ kind: z.ZodLiteral<"model_judge">;
467
+ rubricRef: z.ZodObject<{
468
+ id: z.ZodString;
469
+ path: z.ZodString;
470
+ contentHash: z.ZodString;
471
+ sizeBytes: z.ZodNumber;
472
+ mediaType: z.ZodString;
473
+ visibility: z.ZodEnum<{
474
+ policy: "policy";
475
+ verifier: "verifier";
476
+ host_private: "host_private";
477
+ }>;
478
+ }, z.core.$strict>;
479
+ calibrationStatus: z.ZodEnum<{
480
+ pending: "pending";
481
+ passed: "passed";
482
+ failed: "failed";
483
+ }>;
484
+ model: z.ZodOptional<z.ZodObject<{
485
+ providerId: z.ZodString;
486
+ modelId: z.ZodString;
487
+ revision: z.ZodNullable<z.ZodString>;
488
+ }, z.core.$strict>>;
489
+ temperature: z.ZodOptional<z.ZodNumber>;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ exportName: z.ZodOptional<z.ZodString>;
492
+ timeoutMs: z.ZodNumber;
493
+ networkPolicy: z.ZodLiteral<"none">;
494
+ kind: z.ZodLiteral<"custom_verifier">;
495
+ runtime: z.ZodOptional<z.ZodEnum<{
496
+ isolated_javascript: "isolated_javascript";
497
+ sandbox_process: "sandbox_process";
498
+ }>>;
499
+ verifierRef: z.ZodObject<{
500
+ id: z.ZodString;
501
+ path: z.ZodString;
502
+ contentHash: z.ZodString;
503
+ sizeBytes: z.ZodNumber;
504
+ mediaType: z.ZodString;
505
+ visibility: z.ZodEnum<{
506
+ policy: "policy";
507
+ verifier: "verifier";
508
+ host_private: "host_private";
509
+ }>;
510
+ }, z.core.$strict>;
511
+ }, z.core.$strict>, z.ZodObject<{
512
+ kind: z.ZodLiteral<"human">;
513
+ form: z.ZodOptional<z.ZodObject<{
514
+ schemaVersion: z.ZodLiteral<"openpond.humanForm.v1">;
515
+ mode: z.ZodEnum<{
516
+ individual: "individual";
517
+ pairwise: "pairwise";
518
+ }>;
519
+ instructions: z.ZodString;
520
+ criteria: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
521
+ id: z.ZodString;
522
+ label: z.ZodString;
523
+ instructions: z.ZodString;
524
+ required: z.ZodBoolean;
525
+ allowAbstain: z.ZodBoolean;
526
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
527
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
528
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
529
+ description: z.ZodString;
530
+ }, z.core.$strict>>>;
531
+ kind: z.ZodLiteral<"score">;
532
+ minimum: z.ZodNumber;
533
+ maximum: z.ZodNumber;
534
+ step: z.ZodNumber;
535
+ }, z.core.$strict>, z.ZodObject<{
536
+ id: z.ZodString;
537
+ label: z.ZodString;
538
+ instructions: z.ZodString;
539
+ required: z.ZodBoolean;
540
+ allowAbstain: z.ZodBoolean;
541
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
542
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
544
+ description: z.ZodString;
545
+ }, z.core.$strict>>>;
546
+ kind: z.ZodLiteral<"category">;
547
+ options: z.ZodArray<z.ZodString>;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ id: z.ZodString;
550
+ label: z.ZodString;
551
+ instructions: z.ZodString;
552
+ required: z.ZodBoolean;
553
+ allowAbstain: z.ZodBoolean;
554
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
555
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
557
+ description: z.ZodString;
558
+ }, z.core.$strict>>>;
559
+ kind: z.ZodLiteral<"boolean">;
560
+ }, z.core.$strict>, z.ZodObject<{
561
+ id: z.ZodString;
562
+ label: z.ZodString;
563
+ instructions: z.ZodString;
564
+ required: z.ZodBoolean;
565
+ allowAbstain: z.ZodBoolean;
566
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
567
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
568
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
569
+ description: z.ZodString;
570
+ }, z.core.$strict>>>;
571
+ kind: z.ZodLiteral<"text">;
572
+ minimumLength: z.ZodOptional<z.ZodNumber>;
573
+ maximumLength: z.ZodNumber;
574
+ }, z.core.$strict>, z.ZodObject<{
575
+ id: z.ZodString;
576
+ label: z.ZodString;
577
+ instructions: z.ZodString;
578
+ required: z.ZodBoolean;
579
+ allowAbstain: z.ZodBoolean;
580
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
581
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
582
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
583
+ description: z.ZodString;
584
+ }, z.core.$strict>>>;
585
+ kind: z.ZodLiteral<"preference">;
586
+ requireStrength: z.ZodOptional<z.ZodBoolean>;
587
+ allowTie: z.ZodBoolean;
588
+ }, z.core.$strict>], "kind">>;
589
+ }, z.core.$strict>>;
590
+ rubricRef: z.ZodObject<{
591
+ id: z.ZodString;
592
+ path: z.ZodString;
593
+ contentHash: z.ZodString;
594
+ sizeBytes: z.ZodNumber;
595
+ mediaType: z.ZodString;
596
+ visibility: z.ZodEnum<{
597
+ policy: "policy";
598
+ verifier: "verifier";
599
+ host_private: "host_private";
600
+ }>;
601
+ }, z.core.$strict>;
602
+ reviewerRole: z.ZodString;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ kind: z.ZodLiteral<"learned_model">;
605
+ modelVersion: z.ZodObject<{
606
+ id: z.ZodString;
607
+ contentHash: z.ZodString;
608
+ }, z.core.$strict>;
609
+ inputContract: z.ZodObject<{
610
+ id: z.ZodString;
611
+ path: z.ZodString;
612
+ contentHash: z.ZodString;
613
+ sizeBytes: z.ZodNumber;
614
+ mediaType: z.ZodString;
615
+ visibility: z.ZodEnum<{
616
+ policy: "policy";
617
+ verifier: "verifier";
618
+ host_private: "host_private";
619
+ }>;
620
+ }, z.core.$strict>;
621
+ }, z.core.$strict>]>;
622
+ rawScore: z.ZodObject<{
623
+ minimum: z.ZodNumber;
624
+ maximum: z.ZodNumber;
625
+ }, z.core.$strict>;
626
+ assets: z.ZodArray<z.ZodObject<{
627
+ id: z.ZodString;
628
+ path: z.ZodString;
629
+ contentHash: z.ZodString;
630
+ sizeBytes: z.ZodNumber;
631
+ mediaType: z.ZodString;
632
+ visibility: z.ZodEnum<{
633
+ policy: "policy";
634
+ verifier: "verifier";
635
+ host_private: "host_private";
636
+ }>;
637
+ }, z.core.$strict>>;
638
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
639
+ id: z.ZodString;
640
+ path: z.ZodString;
641
+ contentHash: z.ZodString;
642
+ sizeBytes: z.ZodNumber;
643
+ mediaType: z.ZodString;
644
+ visibility: z.ZodEnum<{
645
+ policy: "policy";
646
+ verifier: "verifier";
647
+ host_private: "host_private";
648
+ }>;
649
+ }, z.core.$strict>>;
650
+ calibrationCheckRef: z.ZodOptional<z.ZodObject<{
651
+ id: z.ZodString;
652
+ contentHash: z.ZodString;
653
+ revision: z.ZodNumber;
654
+ }, z.core.$strict>>;
655
+ contentHash: z.ZodString;
656
+ }, z.core.$strict>>;
657
+ check: z.ZodObject<{
658
+ schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
659
+ id: z.ZodString;
660
+ revision: z.ZodNumber;
661
+ draft: z.ZodObject<{
662
+ id: z.ZodString;
663
+ contentHash: z.ZodString;
664
+ revision: z.ZodNumber;
665
+ }, z.core.$strict>;
666
+ reward: z.ZodObject<{
667
+ id: z.ZodString;
668
+ contentHash: z.ZodString;
669
+ revision: z.ZodNumber;
670
+ }, z.core.$strict>;
671
+ snapshotHash: z.ZodString;
672
+ fixtureRefs: z.ZodArray<z.ZodObject<{
673
+ id: z.ZodString;
674
+ contentHash: z.ZodString;
675
+ }, z.core.$strict>>;
676
+ status: z.ZodEnum<{
677
+ queued: "queued";
678
+ cancelled: "cancelled";
679
+ failed: "failed";
680
+ completed: "completed";
681
+ running: "running";
682
+ cancelling: "cancelling";
683
+ }>;
684
+ runtime: z.ZodNullable<z.ZodObject<{
685
+ id: z.ZodString;
686
+ packageVersion: z.ZodString;
687
+ engine: z.ZodString;
688
+ }, z.core.$strict>>;
689
+ results: z.ZodArray<z.ZodObject<{
690
+ fixture: z.ZodObject<{
691
+ id: z.ZodString;
692
+ contentHash: z.ZodString;
693
+ }, z.core.$strict>;
694
+ result: z.ZodObject<{
695
+ graderId: z.ZodString;
696
+ reward: z.ZodObject<{
697
+ id: z.ZodString;
698
+ contentHash: z.ZodString;
699
+ revision: z.ZodNumber;
700
+ }, z.core.$strict>;
701
+ role: z.ZodEnum<{
702
+ evaluation: "evaluation";
703
+ training: "training";
704
+ }>;
705
+ status: z.ZodEnum<{
706
+ pending: "pending";
707
+ failed: "failed";
708
+ scored: "scored";
709
+ unavailable: "unavailable";
710
+ }>;
711
+ rawScore: z.ZodNullable<z.ZodNumber>;
712
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
713
+ passed: z.ZodNullable<z.ZodBoolean>;
714
+ evidenceHashes: z.ZodArray<z.ZodString>;
715
+ graderEvidence: z.ZodOptional<z.ZodObject<{
716
+ schemaVersion: z.ZodLiteral<"openpond.graderEvidence.v1">;
717
+ graderId: z.ZodString;
718
+ graderVersion: z.ZodString;
719
+ status: z.ZodOptional<z.ZodEnum<{
720
+ pending: "pending";
721
+ failed: "failed";
722
+ scored: "scored";
723
+ unavailable: "unavailable";
724
+ }>>;
725
+ score: z.ZodNullable<z.ZodNumber>;
726
+ passed: z.ZodBoolean;
727
+ rewardEligible: z.ZodBoolean;
728
+ failureClass: z.ZodNullable<z.ZodEnum<{
729
+ policy_failure: "policy_failure";
730
+ grader_failure: "grader_failure";
731
+ environment_failure: "environment_failure";
732
+ infrastructure_failure: "infrastructure_failure";
733
+ timeout: "timeout";
734
+ cancelled: "cancelled";
735
+ }>>;
736
+ feedback: z.ZodArray<z.ZodString>;
737
+ visibleEvidenceRefs: z.ZodArray<z.ZodString>;
738
+ privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
739
+ modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
740
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
741
+ providerId: z.ZodString;
742
+ modelId: z.ZodString;
743
+ modelRevision: z.ZodNullable<z.ZodString>;
744
+ responseId: z.ZodNullable<z.ZodString>;
745
+ requestHash: z.ZodString;
746
+ responseHash: z.ZodString;
747
+ inputTokens: z.ZodNullable<z.ZodNumber>;
748
+ outputTokens: z.ZodNullable<z.ZodNumber>;
749
+ costUsd: z.ZodNullable<z.ZodNumber>;
750
+ transportPolicy: z.ZodOptional<z.ZodObject<{
751
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
752
+ responseFormat: z.ZodLiteral<"judgment_json_schema">;
753
+ reasoningEffort: z.ZodEnum<{
754
+ off: "off";
755
+ low: "low";
756
+ medium: "medium";
757
+ high: "high";
758
+ xhigh: "xhigh";
759
+ max: "max";
760
+ }>;
761
+ maximumOutputTokens: z.ZodNumber;
762
+ }, z.core.$strict>>;
763
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
764
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
765
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
766
+ }, z.core.$strict>>;
767
+ contentHash: z.ZodString;
768
+ }, z.core.$strict>>;
769
+ message: z.ZodNullable<z.ZodString>;
770
+ }, z.core.$strict>;
771
+ matchesExpectation: z.ZodBoolean;
772
+ }, z.core.$strict>>;
773
+ matchesExpectations: z.ZodNullable<z.ZodBoolean>;
774
+ failure: z.ZodNullable<z.ZodString>;
775
+ timeoutMs: z.ZodNumber;
776
+ maximumSpendUsd: z.ZodNumber;
777
+ judgeCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
778
+ id: z.ZodString;
779
+ requestHash: z.ZodString;
780
+ reservedUsd: z.ZodNumber;
781
+ status: z.ZodEnum<{
782
+ reserved: "reserved";
783
+ settled: "settled";
784
+ not_dispatched: "not_dispatched";
785
+ }>;
786
+ response: z.ZodNullable<z.ZodObject<{
787
+ text: z.ZodString;
788
+ modelId: z.ZodString;
789
+ modelRevision: z.ZodNullable<z.ZodString>;
790
+ responseId: z.ZodNullable<z.ZodString>;
791
+ inputTokens: z.ZodNullable<z.ZodNumber>;
792
+ outputTokens: z.ZodNullable<z.ZodNumber>;
793
+ costUsd: z.ZodNullable<z.ZodNumber>;
794
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
795
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
797
+ }, z.core.$strict>>;
798
+ }, z.core.$strict>>>;
799
+ requestedBy: z.ZodOptional<z.ZodString>;
800
+ leaseOwner: z.ZodNullable<z.ZodString>;
801
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
802
+ attemptCount: z.ZodNumber;
803
+ createdAt: z.ZodString;
804
+ updatedAt: z.ZodString;
805
+ }, z.core.$strict>;
806
+ assets: z.ZodArray<z.ZodObject<{
807
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
808
+ id: z.ZodString;
809
+ revision: z.ZodLiteral<1>;
810
+ asset: z.ZodObject<{
811
+ id: z.ZodString;
812
+ path: z.ZodString;
813
+ contentHash: z.ZodString;
814
+ sizeBytes: z.ZodNumber;
815
+ mediaType: z.ZodString;
816
+ visibility: z.ZodEnum<{
817
+ policy: "policy";
818
+ verifier: "verifier";
819
+ host_private: "host_private";
820
+ }>;
821
+ }, z.core.$strict>;
822
+ text: z.ZodString;
823
+ contentHash: z.ZodString;
824
+ }, z.core.$strict>>;
825
+ }, z.core.$strict>;
826
+ export declare const RewardCalibrationClosureSchema: z.ZodObject<{
827
+ schemaVersion: z.ZodLiteral<"openpond.rewardCalibrationClosure.v1">;
828
+ reward: z.ZodObject<{
829
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
830
+ id: z.ZodString;
831
+ revision: z.ZodNumber;
832
+ name: z.ZodString;
833
+ description: z.ZodString;
834
+ feedbackKey: z.ZodOptional<z.ZodString>;
835
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
836
+ kind: z.ZodEnum<{
837
+ content: "content";
838
+ schema: "schema";
839
+ artifact: "artifact";
840
+ runtime_event: "runtime_event";
841
+ state: "state";
842
+ }>;
843
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
844
+ }, z.core.$strict>, z.ZodObject<{
845
+ kind: z.ZodLiteral<"model_judge">;
846
+ rubricRef: z.ZodObject<{
847
+ id: z.ZodString;
848
+ path: z.ZodString;
849
+ contentHash: z.ZodString;
850
+ sizeBytes: z.ZodNumber;
851
+ mediaType: z.ZodString;
852
+ visibility: z.ZodEnum<{
853
+ policy: "policy";
854
+ verifier: "verifier";
855
+ host_private: "host_private";
856
+ }>;
857
+ }, z.core.$strict>;
858
+ calibrationStatus: z.ZodEnum<{
859
+ pending: "pending";
860
+ passed: "passed";
861
+ failed: "failed";
862
+ }>;
863
+ model: z.ZodOptional<z.ZodObject<{
864
+ providerId: z.ZodString;
865
+ modelId: z.ZodString;
866
+ revision: z.ZodNullable<z.ZodString>;
867
+ }, z.core.$strict>>;
868
+ temperature: z.ZodOptional<z.ZodNumber>;
869
+ }, z.core.$strict>, z.ZodObject<{
870
+ exportName: z.ZodOptional<z.ZodString>;
871
+ timeoutMs: z.ZodNumber;
872
+ networkPolicy: z.ZodLiteral<"none">;
873
+ kind: z.ZodLiteral<"custom_verifier">;
874
+ runtime: z.ZodOptional<z.ZodEnum<{
875
+ isolated_javascript: "isolated_javascript";
876
+ sandbox_process: "sandbox_process";
877
+ }>>;
878
+ verifierRef: z.ZodObject<{
879
+ id: z.ZodString;
880
+ path: z.ZodString;
881
+ contentHash: z.ZodString;
882
+ sizeBytes: z.ZodNumber;
883
+ mediaType: z.ZodString;
884
+ visibility: z.ZodEnum<{
885
+ policy: "policy";
886
+ verifier: "verifier";
887
+ host_private: "host_private";
888
+ }>;
889
+ }, z.core.$strict>;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ kind: z.ZodLiteral<"human">;
892
+ form: z.ZodOptional<z.ZodObject<{
893
+ schemaVersion: z.ZodLiteral<"openpond.humanForm.v1">;
894
+ mode: z.ZodEnum<{
895
+ individual: "individual";
896
+ pairwise: "pairwise";
897
+ }>;
898
+ instructions: z.ZodString;
899
+ criteria: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
900
+ id: z.ZodString;
901
+ label: z.ZodString;
902
+ instructions: z.ZodString;
903
+ required: z.ZodBoolean;
904
+ allowAbstain: z.ZodBoolean;
905
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
906
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
907
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
908
+ description: z.ZodString;
909
+ }, z.core.$strict>>>;
910
+ kind: z.ZodLiteral<"score">;
911
+ minimum: z.ZodNumber;
912
+ maximum: z.ZodNumber;
913
+ step: z.ZodNumber;
914
+ }, z.core.$strict>, z.ZodObject<{
915
+ id: z.ZodString;
916
+ label: z.ZodString;
917
+ instructions: z.ZodString;
918
+ required: z.ZodBoolean;
919
+ allowAbstain: z.ZodBoolean;
920
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
921
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
922
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
923
+ description: z.ZodString;
924
+ }, z.core.$strict>>>;
925
+ kind: z.ZodLiteral<"category">;
926
+ options: z.ZodArray<z.ZodString>;
927
+ }, z.core.$strict>, z.ZodObject<{
928
+ id: z.ZodString;
929
+ label: z.ZodString;
930
+ instructions: z.ZodString;
931
+ required: z.ZodBoolean;
932
+ allowAbstain: z.ZodBoolean;
933
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
934
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
936
+ description: z.ZodString;
937
+ }, z.core.$strict>>>;
938
+ kind: z.ZodLiteral<"boolean">;
939
+ }, z.core.$strict>, z.ZodObject<{
940
+ id: z.ZodString;
941
+ label: z.ZodString;
942
+ instructions: z.ZodString;
943
+ required: z.ZodBoolean;
944
+ allowAbstain: z.ZodBoolean;
945
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
946
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
947
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
948
+ description: z.ZodString;
949
+ }, z.core.$strict>>>;
950
+ kind: z.ZodLiteral<"text">;
951
+ minimumLength: z.ZodOptional<z.ZodNumber>;
952
+ maximumLength: z.ZodNumber;
953
+ }, z.core.$strict>, z.ZodObject<{
954
+ id: z.ZodString;
955
+ label: z.ZodString;
956
+ instructions: z.ZodString;
957
+ required: z.ZodBoolean;
958
+ allowAbstain: z.ZodBoolean;
959
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
960
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
961
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
962
+ description: z.ZodString;
963
+ }, z.core.$strict>>>;
964
+ kind: z.ZodLiteral<"preference">;
965
+ requireStrength: z.ZodOptional<z.ZodBoolean>;
966
+ allowTie: z.ZodBoolean;
967
+ }, z.core.$strict>], "kind">>;
968
+ }, z.core.$strict>>;
969
+ rubricRef: z.ZodObject<{
970
+ id: z.ZodString;
971
+ path: z.ZodString;
972
+ contentHash: z.ZodString;
973
+ sizeBytes: z.ZodNumber;
974
+ mediaType: z.ZodString;
975
+ visibility: z.ZodEnum<{
976
+ policy: "policy";
977
+ verifier: "verifier";
978
+ host_private: "host_private";
979
+ }>;
980
+ }, z.core.$strict>;
981
+ reviewerRole: z.ZodString;
982
+ }, z.core.$strict>, z.ZodObject<{
983
+ kind: z.ZodLiteral<"learned_model">;
984
+ modelVersion: z.ZodObject<{
985
+ id: z.ZodString;
986
+ contentHash: z.ZodString;
987
+ }, z.core.$strict>;
988
+ inputContract: z.ZodObject<{
989
+ id: z.ZodString;
990
+ path: z.ZodString;
991
+ contentHash: z.ZodString;
992
+ sizeBytes: z.ZodNumber;
993
+ mediaType: z.ZodString;
994
+ visibility: z.ZodEnum<{
995
+ policy: "policy";
996
+ verifier: "verifier";
997
+ host_private: "host_private";
998
+ }>;
999
+ }, z.core.$strict>;
1000
+ }, z.core.$strict>]>;
1001
+ rawScore: z.ZodObject<{
1002
+ minimum: z.ZodNumber;
1003
+ maximum: z.ZodNumber;
1004
+ }, z.core.$strict>;
1005
+ assets: z.ZodArray<z.ZodObject<{
1006
+ id: z.ZodString;
1007
+ path: z.ZodString;
1008
+ contentHash: z.ZodString;
1009
+ sizeBytes: z.ZodNumber;
1010
+ mediaType: z.ZodString;
1011
+ visibility: z.ZodEnum<{
1012
+ policy: "policy";
1013
+ verifier: "verifier";
1014
+ host_private: "host_private";
1015
+ }>;
1016
+ }, z.core.$strict>>;
1017
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
1018
+ id: z.ZodString;
1019
+ path: z.ZodString;
1020
+ contentHash: z.ZodString;
1021
+ sizeBytes: z.ZodNumber;
1022
+ mediaType: z.ZodString;
1023
+ visibility: z.ZodEnum<{
1024
+ policy: "policy";
1025
+ verifier: "verifier";
1026
+ host_private: "host_private";
1027
+ }>;
1028
+ }, z.core.$strict>>;
1029
+ calibrationCheckRef: z.ZodOptional<z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ contentHash: z.ZodString;
1032
+ revision: z.ZodNumber;
1033
+ }, z.core.$strict>>;
1034
+ contentHash: z.ZodString;
1035
+ }, z.core.$strict>;
1036
+ draft: z.ZodDiscriminatedUnion<[z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ targetId: z.ZodString;
1039
+ baseRelease: z.ZodNullable<z.ZodObject<{
1040
+ id: z.ZodString;
1041
+ contentHash: z.ZodString;
1042
+ revision: z.ZodNumber;
1043
+ }, z.core.$strict>>;
1044
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1045
+ targetKind: z.ZodLiteral<"definition">;
1046
+ fields: z.ZodObject<{
1047
+ name: z.ZodString;
1048
+ description: z.ZodString;
1049
+ instructions: z.ZodString;
1050
+ input: z.ZodString;
1051
+ output: z.ZodString;
1052
+ familyNamespace: z.ZodString;
1053
+ sources: z.ZodArray<z.ZodObject<{
1054
+ graderId: z.ZodString;
1055
+ reward: z.ZodObject<{
1056
+ id: z.ZodString;
1057
+ contentHash: z.ZodString;
1058
+ revision: z.ZodNumber;
1059
+ }, z.core.$strict>;
1060
+ role: z.ZodEnum<{
1061
+ evaluation: "evaluation";
1062
+ training: "training";
1063
+ }>;
1064
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1065
+ kind: z.ZodLiteral<"identity">;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ kind: z.ZodLiteral<"linear">;
1068
+ minimum: z.ZodNumber;
1069
+ maximum: z.ZodNumber;
1070
+ direction: z.ZodEnum<{
1071
+ higher: "higher";
1072
+ lower: "lower";
1073
+ }>;
1074
+ }, z.core.$strict>], "kind">;
1075
+ weight: z.ZodNumber;
1076
+ required: z.ZodBoolean;
1077
+ hardGate: z.ZodBoolean;
1078
+ privileged: z.ZodBoolean;
1079
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1080
+ id: z.ZodString;
1081
+ contentHash: z.ZodString;
1082
+ }, z.core.$strict>>;
1083
+ }, z.core.$strict>>;
1084
+ recipeRef: z.ZodOptional<z.ZodObject<{
1085
+ id: z.ZodString;
1086
+ contentHash: z.ZodString;
1087
+ revision: z.ZodNumber;
1088
+ }, z.core.$strict>>;
1089
+ }, z.core.$strict>;
1090
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
1091
+ revision: z.ZodNumber;
1092
+ status: z.ZodEnum<{
1093
+ draft: "draft";
1094
+ archived: "archived";
1095
+ published: "published";
1096
+ }>;
1097
+ publishedRelease: z.ZodNullable<z.ZodObject<{
1098
+ id: z.ZodString;
1099
+ contentHash: z.ZodString;
1100
+ revision: z.ZodNumber;
1101
+ }, z.core.$strict>>;
1102
+ createdAt: z.ZodString;
1103
+ updatedAt: z.ZodString;
1104
+ contentHash: z.ZodString;
1105
+ }, z.core.$strict>, z.ZodObject<{
1106
+ id: z.ZodString;
1107
+ targetId: z.ZodString;
1108
+ baseRelease: z.ZodNullable<z.ZodObject<{
1109
+ id: z.ZodString;
1110
+ contentHash: z.ZodString;
1111
+ revision: z.ZodNumber;
1112
+ }, z.core.$strict>>;
1113
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1114
+ targetKind: z.ZodLiteral<"reward">;
1115
+ fields: z.ZodObject<{
1116
+ name: z.ZodString;
1117
+ description: z.ZodString;
1118
+ feedbackKey: z.ZodOptional<z.ZodString>;
1119
+ kind: z.ZodEnum<{
1120
+ content: "content";
1121
+ schema: "schema";
1122
+ artifact: "artifact";
1123
+ runtime_event: "runtime_event";
1124
+ state: "state";
1125
+ model_judge: "model_judge";
1126
+ custom_verifier: "custom_verifier";
1127
+ human: "human";
1128
+ learned_model: "learned_model";
1129
+ }>;
1130
+ fields: z.ZodString;
1131
+ outputField: z.ZodString;
1132
+ expectedField: z.ZodString;
1133
+ expectedValue: z.ZodString;
1134
+ schema: z.ZodString;
1135
+ reference: z.ZodString;
1136
+ events: z.ZodString;
1137
+ code: z.ZodString;
1138
+ exportName: z.ZodString;
1139
+ timeout: z.ZodString;
1140
+ verifierRuntime: z.ZodOptional<z.ZodEnum<{
1141
+ isolated_javascript: "isolated_javascript";
1142
+ sandbox_process: "sandbox_process";
1143
+ }>>;
1144
+ rubric: z.ZodString;
1145
+ providerId: z.ZodString;
1146
+ modelId: z.ZodString;
1147
+ modelRevision: z.ZodString;
1148
+ temperature: z.ZodString;
1149
+ reviewerRole: z.ZodString;
1150
+ humanForm: z.ZodOptional<z.ZodString>;
1151
+ learnedId: z.ZodString;
1152
+ learnedHash: z.ZodString;
1153
+ inputContract: z.ZodString;
1154
+ minimum: z.ZodString;
1155
+ maximum: z.ZodString;
1156
+ fixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ name: z.ZodString;
1159
+ input: z.ZodString;
1160
+ output: z.ZodString;
1161
+ expectedOutput: z.ZodString;
1162
+ evaluatorContext: z.ZodString;
1163
+ artifactRefs: z.ZodArray<z.ZodString>;
1164
+ runtimeEventRefs: z.ZodArray<z.ZodString>;
1165
+ infrastructureError: z.ZodString;
1166
+ expectedStatus: z.ZodEnum<{
1167
+ pending: "pending";
1168
+ failed: "failed";
1169
+ scored: "scored";
1170
+ unavailable: "unavailable";
1171
+ }>;
1172
+ minimumScore: z.ZodString;
1173
+ maximumScore: z.ZodString;
1174
+ expectedPassed: z.ZodEnum<{
1175
+ any: "any";
1176
+ true: "true";
1177
+ false: "false";
1178
+ }>;
1179
+ sourceLabel: z.ZodOptional<z.ZodObject<{
1180
+ evidence: z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ contentHash: z.ZodString;
1183
+ revision: z.ZodNumber;
1184
+ }, z.core.$strict>;
1185
+ feedback: z.ZodObject<{
1186
+ id: z.ZodString;
1187
+ revision: z.ZodNumber;
1188
+ }, z.core.$strict>;
1189
+ }, z.core.$strict>>;
1190
+ }, z.core.$strict>>>;
1191
+ }, z.core.$strict>;
1192
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
1193
+ revision: z.ZodNumber;
1194
+ status: z.ZodEnum<{
1195
+ draft: "draft";
1196
+ archived: "archived";
1197
+ published: "published";
1198
+ }>;
1199
+ publishedRelease: z.ZodNullable<z.ZodObject<{
1200
+ id: z.ZodString;
1201
+ contentHash: z.ZodString;
1202
+ revision: z.ZodNumber;
1203
+ }, z.core.$strict>>;
1204
+ createdAt: z.ZodString;
1205
+ updatedAt: z.ZodString;
1206
+ contentHash: z.ZodString;
1207
+ }, z.core.$strict>, z.ZodObject<{
1208
+ id: z.ZodString;
1209
+ targetId: z.ZodString;
1210
+ baseRelease: z.ZodNullable<z.ZodObject<{
1211
+ id: z.ZodString;
1212
+ contentHash: z.ZodString;
1213
+ revision: z.ZodNumber;
1214
+ }, z.core.$strict>>;
1215
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1216
+ targetKind: z.ZodLiteral<"binding">;
1217
+ fields: z.ZodObject<{
1218
+ name: z.ZodString;
1219
+ description: z.ZodString;
1220
+ sources: z.ZodArray<z.ZodObject<{
1221
+ graderId: z.ZodString;
1222
+ reward: z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ contentHash: z.ZodString;
1225
+ revision: z.ZodNumber;
1226
+ }, z.core.$strict>;
1227
+ role: z.ZodEnum<{
1228
+ evaluation: "evaluation";
1229
+ training: "training";
1230
+ }>;
1231
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1232
+ kind: z.ZodLiteral<"identity">;
1233
+ }, z.core.$strict>, z.ZodObject<{
1234
+ kind: z.ZodLiteral<"linear">;
1235
+ minimum: z.ZodNumber;
1236
+ maximum: z.ZodNumber;
1237
+ direction: z.ZodEnum<{
1238
+ higher: "higher";
1239
+ lower: "lower";
1240
+ }>;
1241
+ }, z.core.$strict>], "kind">;
1242
+ weight: z.ZodNumber;
1243
+ required: z.ZodBoolean;
1244
+ hardGate: z.ZodBoolean;
1245
+ privileged: z.ZodBoolean;
1246
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1247
+ id: z.ZodString;
1248
+ contentHash: z.ZodString;
1249
+ }, z.core.$strict>>;
1250
+ }, z.core.$strict>>;
1251
+ }, z.core.$strict>;
1252
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
1253
+ revision: z.ZodNumber;
1254
+ status: z.ZodEnum<{
1255
+ draft: "draft";
1256
+ archived: "archived";
1257
+ published: "published";
1258
+ }>;
1259
+ publishedRelease: z.ZodNullable<z.ZodObject<{
1260
+ id: z.ZodString;
1261
+ contentHash: z.ZodString;
1262
+ revision: z.ZodNumber;
1263
+ }, z.core.$strict>>;
1264
+ createdAt: z.ZodString;
1265
+ updatedAt: z.ZodString;
1266
+ contentHash: z.ZodString;
1267
+ }, z.core.$strict>], "targetKind">;
1268
+ base: z.ZodNullable<z.ZodObject<{
1269
+ schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
1270
+ id: z.ZodString;
1271
+ revision: z.ZodNumber;
1272
+ name: z.ZodString;
1273
+ description: z.ZodString;
1274
+ feedbackKey: z.ZodOptional<z.ZodString>;
1275
+ implementation: z.ZodUnion<readonly [z.ZodObject<{
1276
+ kind: z.ZodEnum<{
1277
+ content: "content";
1278
+ schema: "schema";
1279
+ artifact: "artifact";
1280
+ runtime_event: "runtime_event";
1281
+ state: "state";
1282
+ }>;
1283
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1284
+ }, z.core.$strict>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"model_judge">;
1286
+ rubricRef: z.ZodObject<{
1287
+ id: z.ZodString;
1288
+ path: z.ZodString;
1289
+ contentHash: z.ZodString;
1290
+ sizeBytes: z.ZodNumber;
1291
+ mediaType: z.ZodString;
1292
+ visibility: z.ZodEnum<{
1293
+ policy: "policy";
1294
+ verifier: "verifier";
1295
+ host_private: "host_private";
1296
+ }>;
1297
+ }, z.core.$strict>;
1298
+ calibrationStatus: z.ZodEnum<{
1299
+ pending: "pending";
1300
+ passed: "passed";
1301
+ failed: "failed";
1302
+ }>;
1303
+ model: z.ZodOptional<z.ZodObject<{
1304
+ providerId: z.ZodString;
1305
+ modelId: z.ZodString;
1306
+ revision: z.ZodNullable<z.ZodString>;
1307
+ }, z.core.$strict>>;
1308
+ temperature: z.ZodOptional<z.ZodNumber>;
1309
+ }, z.core.$strict>, z.ZodObject<{
1310
+ exportName: z.ZodOptional<z.ZodString>;
1311
+ timeoutMs: z.ZodNumber;
1312
+ networkPolicy: z.ZodLiteral<"none">;
1313
+ kind: z.ZodLiteral<"custom_verifier">;
1314
+ runtime: z.ZodOptional<z.ZodEnum<{
1315
+ isolated_javascript: "isolated_javascript";
1316
+ sandbox_process: "sandbox_process";
1317
+ }>>;
1318
+ verifierRef: z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ path: z.ZodString;
1321
+ contentHash: z.ZodString;
1322
+ sizeBytes: z.ZodNumber;
1323
+ mediaType: z.ZodString;
1324
+ visibility: z.ZodEnum<{
1325
+ policy: "policy";
1326
+ verifier: "verifier";
1327
+ host_private: "host_private";
1328
+ }>;
1329
+ }, z.core.$strict>;
1330
+ }, z.core.$strict>, z.ZodObject<{
1331
+ kind: z.ZodLiteral<"human">;
1332
+ form: z.ZodOptional<z.ZodObject<{
1333
+ schemaVersion: z.ZodLiteral<"openpond.humanForm.v1">;
1334
+ mode: z.ZodEnum<{
1335
+ individual: "individual";
1336
+ pairwise: "pairwise";
1337
+ }>;
1338
+ instructions: z.ZodString;
1339
+ criteria: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1340
+ id: z.ZodString;
1341
+ label: z.ZodString;
1342
+ instructions: z.ZodString;
1343
+ required: z.ZodBoolean;
1344
+ allowAbstain: z.ZodBoolean;
1345
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
1346
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1347
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
1348
+ description: z.ZodString;
1349
+ }, z.core.$strict>>>;
1350
+ kind: z.ZodLiteral<"score">;
1351
+ minimum: z.ZodNumber;
1352
+ maximum: z.ZodNumber;
1353
+ step: z.ZodNumber;
1354
+ }, z.core.$strict>, z.ZodObject<{
1355
+ id: z.ZodString;
1356
+ label: z.ZodString;
1357
+ instructions: z.ZodString;
1358
+ required: z.ZodBoolean;
1359
+ allowAbstain: z.ZodBoolean;
1360
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
1361
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1362
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
1363
+ description: z.ZodString;
1364
+ }, z.core.$strict>>>;
1365
+ kind: z.ZodLiteral<"category">;
1366
+ options: z.ZodArray<z.ZodString>;
1367
+ }, z.core.$strict>, z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ label: z.ZodString;
1370
+ instructions: z.ZodString;
1371
+ required: z.ZodBoolean;
1372
+ allowAbstain: z.ZodBoolean;
1373
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
1374
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1375
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
1376
+ description: z.ZodString;
1377
+ }, z.core.$strict>>>;
1378
+ kind: z.ZodLiteral<"boolean">;
1379
+ }, z.core.$strict>, z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ label: z.ZodString;
1382
+ instructions: z.ZodString;
1383
+ required: z.ZodBoolean;
1384
+ allowAbstain: z.ZodBoolean;
1385
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
1386
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1387
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
1388
+ description: z.ZodString;
1389
+ }, z.core.$strict>>>;
1390
+ kind: z.ZodLiteral<"text">;
1391
+ minimumLength: z.ZodOptional<z.ZodNumber>;
1392
+ maximumLength: z.ZodNumber;
1393
+ }, z.core.$strict>, z.ZodObject<{
1394
+ id: z.ZodString;
1395
+ label: z.ZodString;
1396
+ instructions: z.ZodString;
1397
+ required: z.ZodBoolean;
1398
+ allowAbstain: z.ZodBoolean;
1399
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
1400
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1401
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
1402
+ description: z.ZodString;
1403
+ }, z.core.$strict>>>;
1404
+ kind: z.ZodLiteral<"preference">;
1405
+ requireStrength: z.ZodOptional<z.ZodBoolean>;
1406
+ allowTie: z.ZodBoolean;
1407
+ }, z.core.$strict>], "kind">>;
1408
+ }, z.core.$strict>>;
1409
+ rubricRef: z.ZodObject<{
1410
+ id: z.ZodString;
1411
+ path: z.ZodString;
1412
+ contentHash: z.ZodString;
1413
+ sizeBytes: z.ZodNumber;
1414
+ mediaType: z.ZodString;
1415
+ visibility: z.ZodEnum<{
1416
+ policy: "policy";
1417
+ verifier: "verifier";
1418
+ host_private: "host_private";
1419
+ }>;
1420
+ }, z.core.$strict>;
1421
+ reviewerRole: z.ZodString;
1422
+ }, z.core.$strict>, z.ZodObject<{
1423
+ kind: z.ZodLiteral<"learned_model">;
1424
+ modelVersion: z.ZodObject<{
1425
+ id: z.ZodString;
1426
+ contentHash: z.ZodString;
1427
+ }, z.core.$strict>;
1428
+ inputContract: z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ path: z.ZodString;
1431
+ contentHash: z.ZodString;
1432
+ sizeBytes: z.ZodNumber;
1433
+ mediaType: z.ZodString;
1434
+ visibility: z.ZodEnum<{
1435
+ policy: "policy";
1436
+ verifier: "verifier";
1437
+ host_private: "host_private";
1438
+ }>;
1439
+ }, z.core.$strict>;
1440
+ }, z.core.$strict>]>;
1441
+ rawScore: z.ZodObject<{
1442
+ minimum: z.ZodNumber;
1443
+ maximum: z.ZodNumber;
1444
+ }, z.core.$strict>;
1445
+ assets: z.ZodArray<z.ZodObject<{
1446
+ id: z.ZodString;
1447
+ path: z.ZodString;
1448
+ contentHash: z.ZodString;
1449
+ sizeBytes: z.ZodNumber;
1450
+ mediaType: z.ZodString;
1451
+ visibility: z.ZodEnum<{
1452
+ policy: "policy";
1453
+ verifier: "verifier";
1454
+ host_private: "host_private";
1455
+ }>;
1456
+ }, z.core.$strict>>;
1457
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
1458
+ id: z.ZodString;
1459
+ path: z.ZodString;
1460
+ contentHash: z.ZodString;
1461
+ sizeBytes: z.ZodNumber;
1462
+ mediaType: z.ZodString;
1463
+ visibility: z.ZodEnum<{
1464
+ policy: "policy";
1465
+ verifier: "verifier";
1466
+ host_private: "host_private";
1467
+ }>;
1468
+ }, z.core.$strict>>;
1469
+ calibrationCheckRef: z.ZodOptional<z.ZodObject<{
1470
+ id: z.ZodString;
1471
+ contentHash: z.ZodString;
1472
+ revision: z.ZodNumber;
1473
+ }, z.core.$strict>>;
1474
+ contentHash: z.ZodString;
1475
+ }, z.core.$strict>>;
1476
+ check: z.ZodObject<{
1477
+ schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
1478
+ id: z.ZodString;
1479
+ revision: z.ZodNumber;
1480
+ draft: z.ZodObject<{
1481
+ id: z.ZodString;
1482
+ contentHash: z.ZodString;
1483
+ revision: z.ZodNumber;
1484
+ }, z.core.$strict>;
1485
+ reward: z.ZodObject<{
1486
+ id: z.ZodString;
1487
+ contentHash: z.ZodString;
1488
+ revision: z.ZodNumber;
1489
+ }, z.core.$strict>;
1490
+ snapshotHash: z.ZodString;
1491
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1492
+ id: z.ZodString;
1493
+ contentHash: z.ZodString;
1494
+ }, z.core.$strict>>;
1495
+ status: z.ZodEnum<{
1496
+ queued: "queued";
1497
+ cancelled: "cancelled";
1498
+ failed: "failed";
1499
+ completed: "completed";
1500
+ running: "running";
1501
+ cancelling: "cancelling";
1502
+ }>;
1503
+ runtime: z.ZodNullable<z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ packageVersion: z.ZodString;
1506
+ engine: z.ZodString;
1507
+ }, z.core.$strict>>;
1508
+ results: z.ZodArray<z.ZodObject<{
1509
+ fixture: z.ZodObject<{
1510
+ id: z.ZodString;
1511
+ contentHash: z.ZodString;
1512
+ }, z.core.$strict>;
1513
+ result: z.ZodObject<{
1514
+ graderId: z.ZodString;
1515
+ reward: z.ZodObject<{
1516
+ id: z.ZodString;
1517
+ contentHash: z.ZodString;
1518
+ revision: z.ZodNumber;
1519
+ }, z.core.$strict>;
1520
+ role: z.ZodEnum<{
1521
+ evaluation: "evaluation";
1522
+ training: "training";
1523
+ }>;
1524
+ status: z.ZodEnum<{
1525
+ pending: "pending";
1526
+ failed: "failed";
1527
+ scored: "scored";
1528
+ unavailable: "unavailable";
1529
+ }>;
1530
+ rawScore: z.ZodNullable<z.ZodNumber>;
1531
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
1532
+ passed: z.ZodNullable<z.ZodBoolean>;
1533
+ evidenceHashes: z.ZodArray<z.ZodString>;
1534
+ graderEvidence: z.ZodOptional<z.ZodObject<{
1535
+ schemaVersion: z.ZodLiteral<"openpond.graderEvidence.v1">;
1536
+ graderId: z.ZodString;
1537
+ graderVersion: z.ZodString;
1538
+ status: z.ZodOptional<z.ZodEnum<{
1539
+ pending: "pending";
1540
+ failed: "failed";
1541
+ scored: "scored";
1542
+ unavailable: "unavailable";
1543
+ }>>;
1544
+ score: z.ZodNullable<z.ZodNumber>;
1545
+ passed: z.ZodBoolean;
1546
+ rewardEligible: z.ZodBoolean;
1547
+ failureClass: z.ZodNullable<z.ZodEnum<{
1548
+ policy_failure: "policy_failure";
1549
+ grader_failure: "grader_failure";
1550
+ environment_failure: "environment_failure";
1551
+ infrastructure_failure: "infrastructure_failure";
1552
+ timeout: "timeout";
1553
+ cancelled: "cancelled";
1554
+ }>>;
1555
+ feedback: z.ZodArray<z.ZodString>;
1556
+ visibleEvidenceRefs: z.ZodArray<z.ZodString>;
1557
+ privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
1558
+ modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
1559
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
1560
+ providerId: z.ZodString;
1561
+ modelId: z.ZodString;
1562
+ modelRevision: z.ZodNullable<z.ZodString>;
1563
+ responseId: z.ZodNullable<z.ZodString>;
1564
+ requestHash: z.ZodString;
1565
+ responseHash: z.ZodString;
1566
+ inputTokens: z.ZodNullable<z.ZodNumber>;
1567
+ outputTokens: z.ZodNullable<z.ZodNumber>;
1568
+ costUsd: z.ZodNullable<z.ZodNumber>;
1569
+ transportPolicy: z.ZodOptional<z.ZodObject<{
1570
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
1571
+ responseFormat: z.ZodLiteral<"judgment_json_schema">;
1572
+ reasoningEffort: z.ZodEnum<{
1573
+ off: "off";
1574
+ low: "low";
1575
+ medium: "medium";
1576
+ high: "high";
1577
+ xhigh: "xhigh";
1578
+ max: "max";
1579
+ }>;
1580
+ maximumOutputTokens: z.ZodNumber;
1581
+ }, z.core.$strict>>;
1582
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
1583
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1584
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1585
+ }, z.core.$strict>>;
1586
+ contentHash: z.ZodString;
1587
+ }, z.core.$strict>>;
1588
+ message: z.ZodNullable<z.ZodString>;
1589
+ }, z.core.$strict>;
1590
+ matchesExpectation: z.ZodBoolean;
1591
+ }, z.core.$strict>>;
1592
+ matchesExpectations: z.ZodNullable<z.ZodBoolean>;
1593
+ failure: z.ZodNullable<z.ZodString>;
1594
+ timeoutMs: z.ZodNumber;
1595
+ maximumSpendUsd: z.ZodNumber;
1596
+ judgeCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1597
+ id: z.ZodString;
1598
+ requestHash: z.ZodString;
1599
+ reservedUsd: z.ZodNumber;
1600
+ status: z.ZodEnum<{
1601
+ reserved: "reserved";
1602
+ settled: "settled";
1603
+ not_dispatched: "not_dispatched";
1604
+ }>;
1605
+ response: z.ZodNullable<z.ZodObject<{
1606
+ text: z.ZodString;
1607
+ modelId: z.ZodString;
1608
+ modelRevision: z.ZodNullable<z.ZodString>;
1609
+ responseId: z.ZodNullable<z.ZodString>;
1610
+ inputTokens: z.ZodNullable<z.ZodNumber>;
1611
+ outputTokens: z.ZodNullable<z.ZodNumber>;
1612
+ costUsd: z.ZodNullable<z.ZodNumber>;
1613
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
1614
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1615
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1616
+ }, z.core.$strict>>;
1617
+ }, z.core.$strict>>>;
1618
+ requestedBy: z.ZodOptional<z.ZodString>;
1619
+ leaseOwner: z.ZodNullable<z.ZodString>;
1620
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1621
+ attemptCount: z.ZodNumber;
1622
+ createdAt: z.ZodString;
1623
+ updatedAt: z.ZodString;
1624
+ }, z.core.$strict>;
1625
+ assets: z.ZodArray<z.ZodObject<{
1626
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
1627
+ id: z.ZodString;
1628
+ revision: z.ZodLiteral<1>;
1629
+ asset: z.ZodObject<{
1630
+ id: z.ZodString;
1631
+ path: z.ZodString;
1632
+ contentHash: z.ZodString;
1633
+ sizeBytes: z.ZodNumber;
1634
+ mediaType: z.ZodString;
1635
+ visibility: z.ZodEnum<{
1636
+ policy: "policy";
1637
+ verifier: "verifier";
1638
+ host_private: "host_private";
1639
+ }>;
1640
+ }, z.core.$strict>;
1641
+ text: z.ZodString;
1642
+ contentHash: z.ZodString;
1643
+ }, z.core.$strict>>;
1644
+ contentHash: z.ZodString;
1645
+ }, z.core.$strict>;
1646
+ export type RewardCalibrationClosure = z.infer<typeof RewardCalibrationClosureSchema>;
1647
+ /** Integrity verification of retained owner evidence, not provider attestation
1648
+ * or a grant. The host authorizes the source before export and before use. */
1649
+ export declare function verifyRewardCalibrationClosure(raw: unknown): RewardCalibrationClosure;
1650
+ export declare function createRewardCalibrationClosure(input: z.input<typeof ContentSchema>): RewardCalibrationClosure;
1651
+ /** Only call inside an already-authorized source transaction. No qualification
1652
+ * is fabricated, replayed, or imported into a different repository scope. */
1653
+ export declare function exportRewardCalibrationClosure(tx: LearningTransaction, input: {
1654
+ reward: LearningRevisionRef;
1655
+ check: LearningRevisionRef;
1656
+ }): Promise<{
1657
+ schemaVersion: "openpond.rewardCalibrationClosure.v1";
1658
+ reward: {
1659
+ schemaVersion: "openpond.rewardRelease.v1";
1660
+ id: string;
1661
+ revision: number;
1662
+ name: string;
1663
+ description: string;
1664
+ implementation: {
1665
+ kind: "content" | "schema" | "artifact" | "runtime_event" | "state";
1666
+ config: Record<string, unknown>;
1667
+ } | {
1668
+ kind: "model_judge";
1669
+ rubricRef: {
1670
+ id: string;
1671
+ path: string;
1672
+ contentHash: string;
1673
+ sizeBytes: number;
1674
+ mediaType: string;
1675
+ visibility: "policy" | "verifier" | "host_private";
1676
+ };
1677
+ calibrationStatus: "pending" | "passed" | "failed";
1678
+ model?: {
1679
+ providerId: string;
1680
+ modelId: string;
1681
+ revision: string | null;
1682
+ } | undefined;
1683
+ temperature?: number | undefined;
1684
+ } | {
1685
+ timeoutMs: number;
1686
+ networkPolicy: "none";
1687
+ kind: "custom_verifier";
1688
+ verifierRef: {
1689
+ id: string;
1690
+ path: string;
1691
+ contentHash: string;
1692
+ sizeBytes: number;
1693
+ mediaType: string;
1694
+ visibility: "policy" | "verifier" | "host_private";
1695
+ };
1696
+ exportName?: string | undefined;
1697
+ runtime?: "isolated_javascript" | "sandbox_process" | undefined;
1698
+ } | {
1699
+ kind: "human";
1700
+ rubricRef: {
1701
+ id: string;
1702
+ path: string;
1703
+ contentHash: string;
1704
+ sizeBytes: number;
1705
+ mediaType: string;
1706
+ visibility: "policy" | "verifier" | "host_private";
1707
+ };
1708
+ reviewerRole: string;
1709
+ form?: {
1710
+ schemaVersion: "openpond.humanForm.v1";
1711
+ mode: "individual" | "pairwise";
1712
+ instructions: string;
1713
+ criteria: ({
1714
+ id: string;
1715
+ label: string;
1716
+ instructions: string;
1717
+ required: boolean;
1718
+ allowAbstain: boolean;
1719
+ kind: "score";
1720
+ minimum: number;
1721
+ maximum: number;
1722
+ step: number;
1723
+ requireRationale?: boolean | undefined;
1724
+ anchors?: {
1725
+ value: string | number | boolean;
1726
+ description: string;
1727
+ }[] | undefined;
1728
+ } | {
1729
+ id: string;
1730
+ label: string;
1731
+ instructions: string;
1732
+ required: boolean;
1733
+ allowAbstain: boolean;
1734
+ kind: "category";
1735
+ options: string[];
1736
+ requireRationale?: boolean | undefined;
1737
+ anchors?: {
1738
+ value: string | number | boolean;
1739
+ description: string;
1740
+ }[] | undefined;
1741
+ } | {
1742
+ id: string;
1743
+ label: string;
1744
+ instructions: string;
1745
+ required: boolean;
1746
+ allowAbstain: boolean;
1747
+ kind: "boolean";
1748
+ requireRationale?: boolean | undefined;
1749
+ anchors?: {
1750
+ value: string | number | boolean;
1751
+ description: string;
1752
+ }[] | undefined;
1753
+ } | {
1754
+ id: string;
1755
+ label: string;
1756
+ instructions: string;
1757
+ required: boolean;
1758
+ allowAbstain: boolean;
1759
+ kind: "text";
1760
+ maximumLength: number;
1761
+ requireRationale?: boolean | undefined;
1762
+ anchors?: {
1763
+ value: string | number | boolean;
1764
+ description: string;
1765
+ }[] | undefined;
1766
+ minimumLength?: number | undefined;
1767
+ } | {
1768
+ id: string;
1769
+ label: string;
1770
+ instructions: string;
1771
+ required: boolean;
1772
+ allowAbstain: boolean;
1773
+ kind: "preference";
1774
+ allowTie: boolean;
1775
+ requireRationale?: boolean | undefined;
1776
+ anchors?: {
1777
+ value: string | number | boolean;
1778
+ description: string;
1779
+ }[] | undefined;
1780
+ requireStrength?: boolean | undefined;
1781
+ })[];
1782
+ } | undefined;
1783
+ } | {
1784
+ kind: "learned_model";
1785
+ modelVersion: {
1786
+ id: string;
1787
+ contentHash: string;
1788
+ };
1789
+ inputContract: {
1790
+ id: string;
1791
+ path: string;
1792
+ contentHash: string;
1793
+ sizeBytes: number;
1794
+ mediaType: string;
1795
+ visibility: "policy" | "verifier" | "host_private";
1796
+ };
1797
+ };
1798
+ rawScore: {
1799
+ minimum: number;
1800
+ maximum: number;
1801
+ };
1802
+ assets: {
1803
+ id: string;
1804
+ path: string;
1805
+ contentHash: string;
1806
+ sizeBytes: number;
1807
+ mediaType: string;
1808
+ visibility: "policy" | "verifier" | "host_private";
1809
+ }[];
1810
+ contentHash: string;
1811
+ feedbackKey?: string | undefined;
1812
+ fixtureSetRef?: {
1813
+ id: string;
1814
+ path: string;
1815
+ contentHash: string;
1816
+ sizeBytes: number;
1817
+ mediaType: string;
1818
+ visibility: "policy" | "verifier" | "host_private";
1819
+ } | undefined;
1820
+ calibrationCheckRef?: {
1821
+ id: string;
1822
+ contentHash: string;
1823
+ revision: number;
1824
+ } | undefined;
1825
+ };
1826
+ draft: {
1827
+ id: string;
1828
+ targetId: string;
1829
+ baseRelease: {
1830
+ id: string;
1831
+ contentHash: string;
1832
+ revision: number;
1833
+ } | null;
1834
+ editorVersion: "openpond.modelsEditor.v1";
1835
+ targetKind: "definition";
1836
+ fields: {
1837
+ name: string;
1838
+ description: string;
1839
+ instructions: string;
1840
+ input: string;
1841
+ output: string;
1842
+ familyNamespace: string;
1843
+ sources: {
1844
+ graderId: string;
1845
+ reward: {
1846
+ id: string;
1847
+ contentHash: string;
1848
+ revision: number;
1849
+ };
1850
+ role: "evaluation" | "training";
1851
+ normalization: {
1852
+ kind: "identity";
1853
+ } | {
1854
+ kind: "linear";
1855
+ minimum: number;
1856
+ maximum: number;
1857
+ direction: "higher" | "lower";
1858
+ };
1859
+ weight: number;
1860
+ required: boolean;
1861
+ hardGate: boolean;
1862
+ privileged: boolean;
1863
+ fixtureRefs: {
1864
+ id: string;
1865
+ contentHash: string;
1866
+ }[];
1867
+ }[];
1868
+ recipeRef?: {
1869
+ id: string;
1870
+ contentHash: string;
1871
+ revision: number;
1872
+ } | undefined;
1873
+ };
1874
+ schemaVersion: "openpond.authoringDraft.v1";
1875
+ revision: number;
1876
+ status: "draft" | "archived" | "published";
1877
+ publishedRelease: {
1878
+ id: string;
1879
+ contentHash: string;
1880
+ revision: number;
1881
+ } | null;
1882
+ createdAt: string;
1883
+ updatedAt: string;
1884
+ contentHash: string;
1885
+ } | {
1886
+ id: string;
1887
+ targetId: string;
1888
+ baseRelease: {
1889
+ id: string;
1890
+ contentHash: string;
1891
+ revision: number;
1892
+ } | null;
1893
+ editorVersion: "openpond.modelsEditor.v1";
1894
+ targetKind: "reward";
1895
+ fields: {
1896
+ name: string;
1897
+ description: string;
1898
+ kind: "content" | "schema" | "artifact" | "runtime_event" | "state" | "model_judge" | "custom_verifier" | "human" | "learned_model";
1899
+ fields: string;
1900
+ outputField: string;
1901
+ expectedField: string;
1902
+ expectedValue: string;
1903
+ schema: string;
1904
+ reference: string;
1905
+ events: string;
1906
+ code: string;
1907
+ exportName: string;
1908
+ timeout: string;
1909
+ rubric: string;
1910
+ providerId: string;
1911
+ modelId: string;
1912
+ modelRevision: string;
1913
+ temperature: string;
1914
+ reviewerRole: string;
1915
+ learnedId: string;
1916
+ learnedHash: string;
1917
+ inputContract: string;
1918
+ minimum: string;
1919
+ maximum: string;
1920
+ feedbackKey?: string | undefined;
1921
+ verifierRuntime?: "isolated_javascript" | "sandbox_process" | undefined;
1922
+ humanForm?: string | undefined;
1923
+ fixtures?: {
1924
+ id: string;
1925
+ name: string;
1926
+ input: string;
1927
+ output: string;
1928
+ expectedOutput: string;
1929
+ evaluatorContext: string;
1930
+ artifactRefs: string[];
1931
+ runtimeEventRefs: string[];
1932
+ infrastructureError: string;
1933
+ expectedStatus: "pending" | "failed" | "scored" | "unavailable";
1934
+ minimumScore: string;
1935
+ maximumScore: string;
1936
+ expectedPassed: "any" | "true" | "false";
1937
+ sourceLabel?: {
1938
+ evidence: {
1939
+ id: string;
1940
+ contentHash: string;
1941
+ revision: number;
1942
+ };
1943
+ feedback: {
1944
+ id: string;
1945
+ revision: number;
1946
+ };
1947
+ } | undefined;
1948
+ }[] | undefined;
1949
+ };
1950
+ schemaVersion: "openpond.authoringDraft.v1";
1951
+ revision: number;
1952
+ status: "draft" | "archived" | "published";
1953
+ publishedRelease: {
1954
+ id: string;
1955
+ contentHash: string;
1956
+ revision: number;
1957
+ } | null;
1958
+ createdAt: string;
1959
+ updatedAt: string;
1960
+ contentHash: string;
1961
+ } | {
1962
+ id: string;
1963
+ targetId: string;
1964
+ baseRelease: {
1965
+ id: string;
1966
+ contentHash: string;
1967
+ revision: number;
1968
+ } | null;
1969
+ editorVersion: "openpond.modelsEditor.v1";
1970
+ targetKind: "binding";
1971
+ fields: {
1972
+ name: string;
1973
+ description: string;
1974
+ sources: {
1975
+ graderId: string;
1976
+ reward: {
1977
+ id: string;
1978
+ contentHash: string;
1979
+ revision: number;
1980
+ };
1981
+ role: "evaluation" | "training";
1982
+ normalization: {
1983
+ kind: "identity";
1984
+ } | {
1985
+ kind: "linear";
1986
+ minimum: number;
1987
+ maximum: number;
1988
+ direction: "higher" | "lower";
1989
+ };
1990
+ weight: number;
1991
+ required: boolean;
1992
+ hardGate: boolean;
1993
+ privileged: boolean;
1994
+ fixtureRefs: {
1995
+ id: string;
1996
+ contentHash: string;
1997
+ }[];
1998
+ }[];
1999
+ };
2000
+ schemaVersion: "openpond.authoringDraft.v1";
2001
+ revision: number;
2002
+ status: "draft" | "archived" | "published";
2003
+ publishedRelease: {
2004
+ id: string;
2005
+ contentHash: string;
2006
+ revision: number;
2007
+ } | null;
2008
+ createdAt: string;
2009
+ updatedAt: string;
2010
+ contentHash: string;
2011
+ };
2012
+ base: {
2013
+ schemaVersion: "openpond.rewardRelease.v1";
2014
+ id: string;
2015
+ revision: number;
2016
+ name: string;
2017
+ description: string;
2018
+ implementation: {
2019
+ kind: "content" | "schema" | "artifact" | "runtime_event" | "state";
2020
+ config: Record<string, unknown>;
2021
+ } | {
2022
+ kind: "model_judge";
2023
+ rubricRef: {
2024
+ id: string;
2025
+ path: string;
2026
+ contentHash: string;
2027
+ sizeBytes: number;
2028
+ mediaType: string;
2029
+ visibility: "policy" | "verifier" | "host_private";
2030
+ };
2031
+ calibrationStatus: "pending" | "passed" | "failed";
2032
+ model?: {
2033
+ providerId: string;
2034
+ modelId: string;
2035
+ revision: string | null;
2036
+ } | undefined;
2037
+ temperature?: number | undefined;
2038
+ } | {
2039
+ timeoutMs: number;
2040
+ networkPolicy: "none";
2041
+ kind: "custom_verifier";
2042
+ verifierRef: {
2043
+ id: string;
2044
+ path: string;
2045
+ contentHash: string;
2046
+ sizeBytes: number;
2047
+ mediaType: string;
2048
+ visibility: "policy" | "verifier" | "host_private";
2049
+ };
2050
+ exportName?: string | undefined;
2051
+ runtime?: "isolated_javascript" | "sandbox_process" | undefined;
2052
+ } | {
2053
+ kind: "human";
2054
+ rubricRef: {
2055
+ id: string;
2056
+ path: string;
2057
+ contentHash: string;
2058
+ sizeBytes: number;
2059
+ mediaType: string;
2060
+ visibility: "policy" | "verifier" | "host_private";
2061
+ };
2062
+ reviewerRole: string;
2063
+ form?: {
2064
+ schemaVersion: "openpond.humanForm.v1";
2065
+ mode: "individual" | "pairwise";
2066
+ instructions: string;
2067
+ criteria: ({
2068
+ id: string;
2069
+ label: string;
2070
+ instructions: string;
2071
+ required: boolean;
2072
+ allowAbstain: boolean;
2073
+ kind: "score";
2074
+ minimum: number;
2075
+ maximum: number;
2076
+ step: number;
2077
+ requireRationale?: boolean | undefined;
2078
+ anchors?: {
2079
+ value: string | number | boolean;
2080
+ description: string;
2081
+ }[] | undefined;
2082
+ } | {
2083
+ id: string;
2084
+ label: string;
2085
+ instructions: string;
2086
+ required: boolean;
2087
+ allowAbstain: boolean;
2088
+ kind: "category";
2089
+ options: string[];
2090
+ requireRationale?: boolean | undefined;
2091
+ anchors?: {
2092
+ value: string | number | boolean;
2093
+ description: string;
2094
+ }[] | undefined;
2095
+ } | {
2096
+ id: string;
2097
+ label: string;
2098
+ instructions: string;
2099
+ required: boolean;
2100
+ allowAbstain: boolean;
2101
+ kind: "boolean";
2102
+ requireRationale?: boolean | undefined;
2103
+ anchors?: {
2104
+ value: string | number | boolean;
2105
+ description: string;
2106
+ }[] | undefined;
2107
+ } | {
2108
+ id: string;
2109
+ label: string;
2110
+ instructions: string;
2111
+ required: boolean;
2112
+ allowAbstain: boolean;
2113
+ kind: "text";
2114
+ maximumLength: number;
2115
+ requireRationale?: boolean | undefined;
2116
+ anchors?: {
2117
+ value: string | number | boolean;
2118
+ description: string;
2119
+ }[] | undefined;
2120
+ minimumLength?: number | undefined;
2121
+ } | {
2122
+ id: string;
2123
+ label: string;
2124
+ instructions: string;
2125
+ required: boolean;
2126
+ allowAbstain: boolean;
2127
+ kind: "preference";
2128
+ allowTie: boolean;
2129
+ requireRationale?: boolean | undefined;
2130
+ anchors?: {
2131
+ value: string | number | boolean;
2132
+ description: string;
2133
+ }[] | undefined;
2134
+ requireStrength?: boolean | undefined;
2135
+ })[];
2136
+ } | undefined;
2137
+ } | {
2138
+ kind: "learned_model";
2139
+ modelVersion: {
2140
+ id: string;
2141
+ contentHash: string;
2142
+ };
2143
+ inputContract: {
2144
+ id: string;
2145
+ path: string;
2146
+ contentHash: string;
2147
+ sizeBytes: number;
2148
+ mediaType: string;
2149
+ visibility: "policy" | "verifier" | "host_private";
2150
+ };
2151
+ };
2152
+ rawScore: {
2153
+ minimum: number;
2154
+ maximum: number;
2155
+ };
2156
+ assets: {
2157
+ id: string;
2158
+ path: string;
2159
+ contentHash: string;
2160
+ sizeBytes: number;
2161
+ mediaType: string;
2162
+ visibility: "policy" | "verifier" | "host_private";
2163
+ }[];
2164
+ contentHash: string;
2165
+ feedbackKey?: string | undefined;
2166
+ fixtureSetRef?: {
2167
+ id: string;
2168
+ path: string;
2169
+ contentHash: string;
2170
+ sizeBytes: number;
2171
+ mediaType: string;
2172
+ visibility: "policy" | "verifier" | "host_private";
2173
+ } | undefined;
2174
+ calibrationCheckRef?: {
2175
+ id: string;
2176
+ contentHash: string;
2177
+ revision: number;
2178
+ } | undefined;
2179
+ } | null;
2180
+ check: {
2181
+ schemaVersion: "openpond.rewardCheckRun.v1";
2182
+ id: string;
2183
+ revision: number;
2184
+ draft: {
2185
+ id: string;
2186
+ contentHash: string;
2187
+ revision: number;
2188
+ };
2189
+ reward: {
2190
+ id: string;
2191
+ contentHash: string;
2192
+ revision: number;
2193
+ };
2194
+ snapshotHash: string;
2195
+ fixtureRefs: {
2196
+ id: string;
2197
+ contentHash: string;
2198
+ }[];
2199
+ status: "queued" | "cancelled" | "failed" | "completed" | "running" | "cancelling";
2200
+ runtime: {
2201
+ id: string;
2202
+ packageVersion: string;
2203
+ engine: string;
2204
+ } | null;
2205
+ results: {
2206
+ fixture: {
2207
+ id: string;
2208
+ contentHash: string;
2209
+ };
2210
+ result: {
2211
+ graderId: string;
2212
+ reward: {
2213
+ id: string;
2214
+ contentHash: string;
2215
+ revision: number;
2216
+ };
2217
+ role: "evaluation" | "training";
2218
+ status: "pending" | "failed" | "scored" | "unavailable";
2219
+ rawScore: number | null;
2220
+ normalizedScore: number | null;
2221
+ passed: boolean | null;
2222
+ evidenceHashes: string[];
2223
+ message: string | null;
2224
+ graderEvidence?: {
2225
+ schemaVersion: "openpond.graderEvidence.v1";
2226
+ graderId: string;
2227
+ graderVersion: string;
2228
+ score: number | null;
2229
+ passed: boolean;
2230
+ rewardEligible: boolean;
2231
+ failureClass: "cancelled" | "policy_failure" | "environment_failure" | "grader_failure" | "infrastructure_failure" | "timeout" | null;
2232
+ feedback: string[];
2233
+ visibleEvidenceRefs: string[];
2234
+ privilegedEvidenceRefs: string[];
2235
+ contentHash: string;
2236
+ status?: "pending" | "failed" | "scored" | "unavailable" | undefined;
2237
+ modelJudgeReceipt?: {
2238
+ schemaVersion: "openpond.modelJudgeReceipt.v1";
2239
+ providerId: string;
2240
+ modelId: string;
2241
+ modelRevision: string | null;
2242
+ responseId: string | null;
2243
+ requestHash: string;
2244
+ responseHash: string;
2245
+ inputTokens: number | null;
2246
+ outputTokens: number | null;
2247
+ costUsd: number | null;
2248
+ transportPolicy?: {
2249
+ schemaVersion: "openpond.modelJudgeTransportPolicy.v1";
2250
+ responseFormat: "judgment_json_schema";
2251
+ reasoningEffort: "off" | "low" | "medium" | "high" | "xhigh" | "max";
2252
+ maximumOutputTokens: number;
2253
+ } | undefined;
2254
+ effectiveRequestHash?: string | undefined;
2255
+ finishReason?: string | null | undefined;
2256
+ reasoningTokens?: number | null | undefined;
2257
+ } | undefined;
2258
+ } | undefined;
2259
+ };
2260
+ matchesExpectation: boolean;
2261
+ }[];
2262
+ matchesExpectations: boolean | null;
2263
+ failure: string | null;
2264
+ timeoutMs: number;
2265
+ maximumSpendUsd: number;
2266
+ leaseOwner: string | null;
2267
+ leaseExpiresAt: string | null;
2268
+ attemptCount: number;
2269
+ createdAt: string;
2270
+ updatedAt: string;
2271
+ judgeCalls?: {
2272
+ id: string;
2273
+ requestHash: string;
2274
+ reservedUsd: number;
2275
+ status: "reserved" | "settled" | "not_dispatched";
2276
+ response: {
2277
+ text: string;
2278
+ modelId: string;
2279
+ modelRevision: string | null;
2280
+ responseId: string | null;
2281
+ inputTokens: number | null;
2282
+ outputTokens: number | null;
2283
+ costUsd: number | null;
2284
+ effectiveRequestHash?: string | undefined;
2285
+ finishReason?: string | null | undefined;
2286
+ reasoningTokens?: number | null | undefined;
2287
+ } | null;
2288
+ }[] | undefined;
2289
+ requestedBy?: string | undefined;
2290
+ };
2291
+ assets: {
2292
+ schemaVersion: "openpond.learningTextAsset.v1";
2293
+ id: string;
2294
+ revision: 1;
2295
+ asset: {
2296
+ id: string;
2297
+ path: string;
2298
+ contentHash: string;
2299
+ sizeBytes: number;
2300
+ mediaType: string;
2301
+ visibility: "policy" | "verifier" | "host_private";
2302
+ };
2303
+ text: string;
2304
+ contentHash: string;
2305
+ }[];
2306
+ contentHash: string;
2307
+ }>;
2308
+ export declare function rewardCalibrationClosureAsset(raw: unknown): {
2309
+ schemaVersion: "openpond.learningTextAsset.v1";
2310
+ id: string;
2311
+ revision: 1;
2312
+ asset: {
2313
+ id: string;
2314
+ path: string;
2315
+ contentHash: string;
2316
+ sizeBytes: number;
2317
+ mediaType: string;
2318
+ visibility: "policy" | "verifier" | "host_private";
2319
+ };
2320
+ text: string;
2321
+ contentHash: string;
2322
+ };
2323
+ //# sourceMappingURL=reward-calibration-closure.d.ts.map