@openpond/evals 0.1.1 → 0.3.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 (46) hide show
  1. package/CONTRACT.md +50 -2
  2. package/README.md +38 -6
  3. package/RELEASING.md +30 -24
  4. package/dist/compatibility.js +45 -0
  5. package/dist/conformance.js +6 -9
  6. package/dist/evidence/authoring.js +40 -0
  7. package/dist/evidence/conformance.js +194 -0
  8. package/dist/evidence/contracts.js +407 -0
  9. package/dist/evidence/eligibility.js +168 -0
  10. package/dist/evidence/index.js +4 -0
  11. package/dist/harness-improvements.js +329 -0
  12. package/dist/harness-workspaces.js +368 -0
  13. package/dist/harness.js +4 -6
  14. package/dist/index.js +4 -0
  15. package/dist/runs.js +33 -5
  16. package/dist/tasksets.js +2 -3
  17. package/dist/types/common.d.ts.map +1 -1
  18. package/dist/types/compatibility.d.ts +11 -0
  19. package/dist/types/compatibility.d.ts.map +1 -0
  20. package/dist/types/conformance.d.ts +8 -48
  21. package/dist/types/conformance.d.ts.map +1 -1
  22. package/dist/types/evidence/authoring.d.ts +41 -0
  23. package/dist/types/evidence/authoring.d.ts.map +1 -0
  24. package/dist/types/evidence/conformance.d.ts +767 -0
  25. package/dist/types/evidence/conformance.d.ts.map +1 -0
  26. package/dist/types/evidence/contracts.d.ts +873 -0
  27. package/dist/types/evidence/contracts.d.ts.map +1 -0
  28. package/dist/types/evidence/eligibility.d.ts +348 -0
  29. package/dist/types/evidence/eligibility.d.ts.map +1 -0
  30. package/dist/types/evidence/index.d.ts +5 -0
  31. package/dist/types/evidence/index.d.ts.map +1 -0
  32. package/dist/types/graders.d.ts.map +1 -1
  33. package/dist/types/harness-improvements.d.ts +523 -0
  34. package/dist/types/harness-improvements.d.ts.map +1 -0
  35. package/dist/types/harness-workspaces.d.ts +802 -0
  36. package/dist/types/harness-workspaces.d.ts.map +1 -0
  37. package/dist/types/harness.d.ts +6 -68
  38. package/dist/types/harness.d.ts.map +1 -1
  39. package/dist/types/index.d.ts +4 -0
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/types/runs.d.ts +46 -1
  42. package/dist/types/runs.d.ts.map +1 -1
  43. package/dist/types/sha256.d.ts.map +1 -1
  44. package/dist/types/tasksets.d.ts +2 -10
  45. package/dist/types/tasksets.d.ts.map +1 -1
  46. package/package.json +14 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../../src/evidence/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,4BAA4B,EAAG,iCAA0C,CAAC;AACvF,eAAO,MAAM,iCAAiC,EAAG,8BAAuC,CAAC;AACzF,eAAO,MAAM,4BAA4B,EAAG,iCAA0C,CAAC;AACvF,eAAO,MAAM,wCAAwC,EAAG,qCAA8C,CAAC;AAEvG,eAAO,MAAM,yBAAyB,aAGrC,CAAC;AACF,eAAO,MAAM,4BAA4B,aAGxC,CAAC;AACF,eAAO,MAAM,wBAAwB,aAGpC,CAAC;AACF,eAAO,MAAM,yBAAyB;;;;;kBAUpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;EAQpC,CAAC;AACH,eAAO,MAAM,sBAAsB;;;EAAmC,CAAC;AACvE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;EAuBlC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;EAKtC,CAAC;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EASjC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;EAMpC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;EAQtC,CAAC;AACH,eAAO,MAAM,+BAA+B;;;;;;;EAO1C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;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AAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,348 @@
1
+ import { z } from "zod";
2
+ import { type AttemptReceipt } from "../runs.js";
3
+ import { type WorkEvidenceReceipt, type WorkFeedbackReceipt } from "./contracts.js";
4
+ export declare const WorkEvidencePolicyStateSchema: z.ZodEnum<{
5
+ active: "active";
6
+ revoked: "revoked";
7
+ deleted: "deleted";
8
+ expired: "expired";
9
+ }>;
10
+ export declare const WorkEvidenceUseSchema: z.ZodEnum<{
11
+ discovery_only: "discovery_only";
12
+ eval_candidate: "eval_candidate";
13
+ demonstration_candidate: "demonstration_candidate";
14
+ preference_candidate: "preference_candidate";
15
+ reward_candidate: "reward_candidate";
16
+ }>;
17
+ export declare const WorkEvidenceBlockerCodeSchema: z.ZodEnum<{
18
+ infrastructure_failure: "infrastructure_failure";
19
+ invalid_evidence_receipt: "invalid_evidence_receipt";
20
+ consent_revoked: "consent_revoked";
21
+ source_deleted: "source_deleted";
22
+ retention_expired: "retention_expired";
23
+ trace_incomplete: "trace_incomplete";
24
+ terminal_not_completed: "terminal_not_completed";
25
+ agent_snapshot_missing: "agent_snapshot_missing";
26
+ input_not_reconstructable: "input_not_reconstructable";
27
+ environment_not_reconstructable: "environment_not_reconstructable";
28
+ output_missing: "output_missing";
29
+ validation_evidence_missing: "validation_evidence_missing";
30
+ verifier_missing: "verifier_missing";
31
+ accepted_feedback_missing: "accepted_feedback_missing";
32
+ correction_pair_missing: "correction_pair_missing";
33
+ attempt_receipt_missing: "attempt_receipt_missing";
34
+ attempt_receipt_invalid: "attempt_receipt_invalid";
35
+ attempt_receipt_unbound: "attempt_receipt_unbound";
36
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
37
+ }>;
38
+ export declare const WorkEvidenceDecisionSchema: z.ZodObject<{
39
+ eligible: z.ZodBoolean;
40
+ blockers: z.ZodArray<z.ZodEnum<{
41
+ infrastructure_failure: "infrastructure_failure";
42
+ invalid_evidence_receipt: "invalid_evidence_receipt";
43
+ consent_revoked: "consent_revoked";
44
+ source_deleted: "source_deleted";
45
+ retention_expired: "retention_expired";
46
+ trace_incomplete: "trace_incomplete";
47
+ terminal_not_completed: "terminal_not_completed";
48
+ agent_snapshot_missing: "agent_snapshot_missing";
49
+ input_not_reconstructable: "input_not_reconstructable";
50
+ environment_not_reconstructable: "environment_not_reconstructable";
51
+ output_missing: "output_missing";
52
+ validation_evidence_missing: "validation_evidence_missing";
53
+ verifier_missing: "verifier_missing";
54
+ accepted_feedback_missing: "accepted_feedback_missing";
55
+ correction_pair_missing: "correction_pair_missing";
56
+ attempt_receipt_missing: "attempt_receipt_missing";
57
+ attempt_receipt_invalid: "attempt_receipt_invalid";
58
+ attempt_receipt_unbound: "attempt_receipt_unbound";
59
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
60
+ }>>;
61
+ }, z.core.$strict>;
62
+ export declare const WorkEvidenceEligibilityContentSchema: z.ZodObject<{
63
+ schemaVersion: z.ZodLiteral<"openpond.workEvidenceEligibility.v1">;
64
+ evidenceReceiptHash: z.ZodString;
65
+ policyState: z.ZodEnum<{
66
+ active: "active";
67
+ revoked: "revoked";
68
+ deleted: "deleted";
69
+ expired: "expired";
70
+ }>;
71
+ decisions: z.ZodObject<{
72
+ discovery_only: z.ZodObject<{
73
+ eligible: z.ZodBoolean;
74
+ blockers: z.ZodArray<z.ZodEnum<{
75
+ infrastructure_failure: "infrastructure_failure";
76
+ invalid_evidence_receipt: "invalid_evidence_receipt";
77
+ consent_revoked: "consent_revoked";
78
+ source_deleted: "source_deleted";
79
+ retention_expired: "retention_expired";
80
+ trace_incomplete: "trace_incomplete";
81
+ terminal_not_completed: "terminal_not_completed";
82
+ agent_snapshot_missing: "agent_snapshot_missing";
83
+ input_not_reconstructable: "input_not_reconstructable";
84
+ environment_not_reconstructable: "environment_not_reconstructable";
85
+ output_missing: "output_missing";
86
+ validation_evidence_missing: "validation_evidence_missing";
87
+ verifier_missing: "verifier_missing";
88
+ accepted_feedback_missing: "accepted_feedback_missing";
89
+ correction_pair_missing: "correction_pair_missing";
90
+ attempt_receipt_missing: "attempt_receipt_missing";
91
+ attempt_receipt_invalid: "attempt_receipt_invalid";
92
+ attempt_receipt_unbound: "attempt_receipt_unbound";
93
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
94
+ }>>;
95
+ }, z.core.$strict>;
96
+ eval_candidate: z.ZodObject<{
97
+ eligible: z.ZodBoolean;
98
+ blockers: z.ZodArray<z.ZodEnum<{
99
+ infrastructure_failure: "infrastructure_failure";
100
+ invalid_evidence_receipt: "invalid_evidence_receipt";
101
+ consent_revoked: "consent_revoked";
102
+ source_deleted: "source_deleted";
103
+ retention_expired: "retention_expired";
104
+ trace_incomplete: "trace_incomplete";
105
+ terminal_not_completed: "terminal_not_completed";
106
+ agent_snapshot_missing: "agent_snapshot_missing";
107
+ input_not_reconstructable: "input_not_reconstructable";
108
+ environment_not_reconstructable: "environment_not_reconstructable";
109
+ output_missing: "output_missing";
110
+ validation_evidence_missing: "validation_evidence_missing";
111
+ verifier_missing: "verifier_missing";
112
+ accepted_feedback_missing: "accepted_feedback_missing";
113
+ correction_pair_missing: "correction_pair_missing";
114
+ attempt_receipt_missing: "attempt_receipt_missing";
115
+ attempt_receipt_invalid: "attempt_receipt_invalid";
116
+ attempt_receipt_unbound: "attempt_receipt_unbound";
117
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
118
+ }>>;
119
+ }, z.core.$strict>;
120
+ demonstration_candidate: z.ZodObject<{
121
+ eligible: z.ZodBoolean;
122
+ blockers: z.ZodArray<z.ZodEnum<{
123
+ infrastructure_failure: "infrastructure_failure";
124
+ invalid_evidence_receipt: "invalid_evidence_receipt";
125
+ consent_revoked: "consent_revoked";
126
+ source_deleted: "source_deleted";
127
+ retention_expired: "retention_expired";
128
+ trace_incomplete: "trace_incomplete";
129
+ terminal_not_completed: "terminal_not_completed";
130
+ agent_snapshot_missing: "agent_snapshot_missing";
131
+ input_not_reconstructable: "input_not_reconstructable";
132
+ environment_not_reconstructable: "environment_not_reconstructable";
133
+ output_missing: "output_missing";
134
+ validation_evidence_missing: "validation_evidence_missing";
135
+ verifier_missing: "verifier_missing";
136
+ accepted_feedback_missing: "accepted_feedback_missing";
137
+ correction_pair_missing: "correction_pair_missing";
138
+ attempt_receipt_missing: "attempt_receipt_missing";
139
+ attempt_receipt_invalid: "attempt_receipt_invalid";
140
+ attempt_receipt_unbound: "attempt_receipt_unbound";
141
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
142
+ }>>;
143
+ }, z.core.$strict>;
144
+ preference_candidate: z.ZodObject<{
145
+ eligible: z.ZodBoolean;
146
+ blockers: z.ZodArray<z.ZodEnum<{
147
+ infrastructure_failure: "infrastructure_failure";
148
+ invalid_evidence_receipt: "invalid_evidence_receipt";
149
+ consent_revoked: "consent_revoked";
150
+ source_deleted: "source_deleted";
151
+ retention_expired: "retention_expired";
152
+ trace_incomplete: "trace_incomplete";
153
+ terminal_not_completed: "terminal_not_completed";
154
+ agent_snapshot_missing: "agent_snapshot_missing";
155
+ input_not_reconstructable: "input_not_reconstructable";
156
+ environment_not_reconstructable: "environment_not_reconstructable";
157
+ output_missing: "output_missing";
158
+ validation_evidence_missing: "validation_evidence_missing";
159
+ verifier_missing: "verifier_missing";
160
+ accepted_feedback_missing: "accepted_feedback_missing";
161
+ correction_pair_missing: "correction_pair_missing";
162
+ attempt_receipt_missing: "attempt_receipt_missing";
163
+ attempt_receipt_invalid: "attempt_receipt_invalid";
164
+ attempt_receipt_unbound: "attempt_receipt_unbound";
165
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
166
+ }>>;
167
+ }, z.core.$strict>;
168
+ reward_candidate: z.ZodObject<{
169
+ eligible: z.ZodBoolean;
170
+ blockers: z.ZodArray<z.ZodEnum<{
171
+ infrastructure_failure: "infrastructure_failure";
172
+ invalid_evidence_receipt: "invalid_evidence_receipt";
173
+ consent_revoked: "consent_revoked";
174
+ source_deleted: "source_deleted";
175
+ retention_expired: "retention_expired";
176
+ trace_incomplete: "trace_incomplete";
177
+ terminal_not_completed: "terminal_not_completed";
178
+ agent_snapshot_missing: "agent_snapshot_missing";
179
+ input_not_reconstructable: "input_not_reconstructable";
180
+ environment_not_reconstructable: "environment_not_reconstructable";
181
+ output_missing: "output_missing";
182
+ validation_evidence_missing: "validation_evidence_missing";
183
+ verifier_missing: "verifier_missing";
184
+ accepted_feedback_missing: "accepted_feedback_missing";
185
+ correction_pair_missing: "correction_pair_missing";
186
+ attempt_receipt_missing: "attempt_receipt_missing";
187
+ attempt_receipt_invalid: "attempt_receipt_invalid";
188
+ attempt_receipt_unbound: "attempt_receipt_unbound";
189
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
190
+ }>>;
191
+ }, z.core.$strict>;
192
+ }, z.core.$strict>;
193
+ }, z.core.$strict>;
194
+ export declare const WorkEvidenceEligibilitySchema: z.ZodObject<{
195
+ schemaVersion: z.ZodLiteral<"openpond.workEvidenceEligibility.v1">;
196
+ evidenceReceiptHash: z.ZodString;
197
+ policyState: z.ZodEnum<{
198
+ active: "active";
199
+ revoked: "revoked";
200
+ deleted: "deleted";
201
+ expired: "expired";
202
+ }>;
203
+ decisions: z.ZodObject<{
204
+ discovery_only: z.ZodObject<{
205
+ eligible: z.ZodBoolean;
206
+ blockers: z.ZodArray<z.ZodEnum<{
207
+ infrastructure_failure: "infrastructure_failure";
208
+ invalid_evidence_receipt: "invalid_evidence_receipt";
209
+ consent_revoked: "consent_revoked";
210
+ source_deleted: "source_deleted";
211
+ retention_expired: "retention_expired";
212
+ trace_incomplete: "trace_incomplete";
213
+ terminal_not_completed: "terminal_not_completed";
214
+ agent_snapshot_missing: "agent_snapshot_missing";
215
+ input_not_reconstructable: "input_not_reconstructable";
216
+ environment_not_reconstructable: "environment_not_reconstructable";
217
+ output_missing: "output_missing";
218
+ validation_evidence_missing: "validation_evidence_missing";
219
+ verifier_missing: "verifier_missing";
220
+ accepted_feedback_missing: "accepted_feedback_missing";
221
+ correction_pair_missing: "correction_pair_missing";
222
+ attempt_receipt_missing: "attempt_receipt_missing";
223
+ attempt_receipt_invalid: "attempt_receipt_invalid";
224
+ attempt_receipt_unbound: "attempt_receipt_unbound";
225
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
226
+ }>>;
227
+ }, z.core.$strict>;
228
+ eval_candidate: z.ZodObject<{
229
+ eligible: z.ZodBoolean;
230
+ blockers: z.ZodArray<z.ZodEnum<{
231
+ infrastructure_failure: "infrastructure_failure";
232
+ invalid_evidence_receipt: "invalid_evidence_receipt";
233
+ consent_revoked: "consent_revoked";
234
+ source_deleted: "source_deleted";
235
+ retention_expired: "retention_expired";
236
+ trace_incomplete: "trace_incomplete";
237
+ terminal_not_completed: "terminal_not_completed";
238
+ agent_snapshot_missing: "agent_snapshot_missing";
239
+ input_not_reconstructable: "input_not_reconstructable";
240
+ environment_not_reconstructable: "environment_not_reconstructable";
241
+ output_missing: "output_missing";
242
+ validation_evidence_missing: "validation_evidence_missing";
243
+ verifier_missing: "verifier_missing";
244
+ accepted_feedback_missing: "accepted_feedback_missing";
245
+ correction_pair_missing: "correction_pair_missing";
246
+ attempt_receipt_missing: "attempt_receipt_missing";
247
+ attempt_receipt_invalid: "attempt_receipt_invalid";
248
+ attempt_receipt_unbound: "attempt_receipt_unbound";
249
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
250
+ }>>;
251
+ }, z.core.$strict>;
252
+ demonstration_candidate: z.ZodObject<{
253
+ eligible: z.ZodBoolean;
254
+ blockers: z.ZodArray<z.ZodEnum<{
255
+ infrastructure_failure: "infrastructure_failure";
256
+ invalid_evidence_receipt: "invalid_evidence_receipt";
257
+ consent_revoked: "consent_revoked";
258
+ source_deleted: "source_deleted";
259
+ retention_expired: "retention_expired";
260
+ trace_incomplete: "trace_incomplete";
261
+ terminal_not_completed: "terminal_not_completed";
262
+ agent_snapshot_missing: "agent_snapshot_missing";
263
+ input_not_reconstructable: "input_not_reconstructable";
264
+ environment_not_reconstructable: "environment_not_reconstructable";
265
+ output_missing: "output_missing";
266
+ validation_evidence_missing: "validation_evidence_missing";
267
+ verifier_missing: "verifier_missing";
268
+ accepted_feedback_missing: "accepted_feedback_missing";
269
+ correction_pair_missing: "correction_pair_missing";
270
+ attempt_receipt_missing: "attempt_receipt_missing";
271
+ attempt_receipt_invalid: "attempt_receipt_invalid";
272
+ attempt_receipt_unbound: "attempt_receipt_unbound";
273
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
274
+ }>>;
275
+ }, z.core.$strict>;
276
+ preference_candidate: z.ZodObject<{
277
+ eligible: z.ZodBoolean;
278
+ blockers: z.ZodArray<z.ZodEnum<{
279
+ infrastructure_failure: "infrastructure_failure";
280
+ invalid_evidence_receipt: "invalid_evidence_receipt";
281
+ consent_revoked: "consent_revoked";
282
+ source_deleted: "source_deleted";
283
+ retention_expired: "retention_expired";
284
+ trace_incomplete: "trace_incomplete";
285
+ terminal_not_completed: "terminal_not_completed";
286
+ agent_snapshot_missing: "agent_snapshot_missing";
287
+ input_not_reconstructable: "input_not_reconstructable";
288
+ environment_not_reconstructable: "environment_not_reconstructable";
289
+ output_missing: "output_missing";
290
+ validation_evidence_missing: "validation_evidence_missing";
291
+ verifier_missing: "verifier_missing";
292
+ accepted_feedback_missing: "accepted_feedback_missing";
293
+ correction_pair_missing: "correction_pair_missing";
294
+ attempt_receipt_missing: "attempt_receipt_missing";
295
+ attempt_receipt_invalid: "attempt_receipt_invalid";
296
+ attempt_receipt_unbound: "attempt_receipt_unbound";
297
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
298
+ }>>;
299
+ }, z.core.$strict>;
300
+ reward_candidate: z.ZodObject<{
301
+ eligible: z.ZodBoolean;
302
+ blockers: z.ZodArray<z.ZodEnum<{
303
+ infrastructure_failure: "infrastructure_failure";
304
+ invalid_evidence_receipt: "invalid_evidence_receipt";
305
+ consent_revoked: "consent_revoked";
306
+ source_deleted: "source_deleted";
307
+ retention_expired: "retention_expired";
308
+ trace_incomplete: "trace_incomplete";
309
+ terminal_not_completed: "terminal_not_completed";
310
+ agent_snapshot_missing: "agent_snapshot_missing";
311
+ input_not_reconstructable: "input_not_reconstructable";
312
+ environment_not_reconstructable: "environment_not_reconstructable";
313
+ output_missing: "output_missing";
314
+ validation_evidence_missing: "validation_evidence_missing";
315
+ verifier_missing: "verifier_missing";
316
+ accepted_feedback_missing: "accepted_feedback_missing";
317
+ correction_pair_missing: "correction_pair_missing";
318
+ attempt_receipt_missing: "attempt_receipt_missing";
319
+ attempt_receipt_invalid: "attempt_receipt_invalid";
320
+ attempt_receipt_unbound: "attempt_receipt_unbound";
321
+ attempt_not_reward_eligible: "attempt_not_reward_eligible";
322
+ }>>;
323
+ }, z.core.$strict>;
324
+ }, z.core.$strict>;
325
+ contentHash: z.ZodString;
326
+ }, z.core.$strict>;
327
+ export type WorkEvidenceEligibilityInput = {
328
+ evidence: WorkEvidenceReceipt;
329
+ feedback?: WorkFeedbackReceipt[];
330
+ policyState: z.infer<typeof WorkEvidencePolicyStateSchema>;
331
+ reconstructability: {
332
+ input: boolean;
333
+ environment: boolean;
334
+ verifier: boolean;
335
+ };
336
+ replay?: {
337
+ attemptReceipt: AttemptReceipt;
338
+ sourceEvidenceReceiptHash: string;
339
+ } | null;
340
+ };
341
+ export declare function classifyWorkEvidence(input: WorkEvidenceEligibilityInput): WorkEvidenceEligibility;
342
+ export declare function verifyWorkEvidenceEligibility(value: unknown): value is WorkEvidenceEligibility;
343
+ export declare function eligibleEvidenceUses(report: WorkEvidenceEligibility): WorkEvidenceUse[];
344
+ export type WorkEvidencePolicyState = z.infer<typeof WorkEvidencePolicyStateSchema>;
345
+ export type WorkEvidenceUse = z.infer<typeof WorkEvidenceUseSchema>;
346
+ export type WorkEvidenceBlockerCode = z.infer<typeof WorkEvidenceBlockerCodeSchema>;
347
+ export type WorkEvidenceEligibility = z.infer<typeof WorkEvidenceEligibilitySchema>;
348
+ //# sourceMappingURL=eligibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eligibility.d.ts","sourceRoot":"","sources":["../../../../../src/evidence/eligibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAA8C,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC7F,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;EAKxC,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;EAMhC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;EAoBxC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;kBAOrC,CAAC;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWtC,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;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ourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/evidence/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../../src/graders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAErF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;kBAW7B,CAAC;AACZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;kBAAkF,CAAC;AAEpH,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,KAAK,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,GAAG,UAAU,GAAG,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC;AAC/O,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAC;IA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