@openpond/evals 0.4.2 → 0.5.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.
- package/CONTRACT.md +14 -0
- package/README.md +6 -1
- package/dist/artifact-verification.js +172 -0
- package/dist/builtin-benchmarks/harness-refiner.js +469 -24
- package/dist/execution-contracts.js +153 -0
- package/dist/execution-receipts.js +185 -0
- package/dist/graders.js +8 -2
- package/dist/index.js +5 -0
- package/dist/preferences.js +737 -0
- package/dist/rollouts.js +241 -0
- package/dist/tasksets.js +24 -0
- package/dist/types/artifact-verification.d.ts +31 -0
- package/dist/types/artifact-verification.d.ts.map +1 -0
- package/dist/types/builtin-benchmarks/harness-refiner.d.ts +22 -0
- package/dist/types/builtin-benchmarks/harness-refiner.d.ts.map +1 -1
- package/dist/types/conformance.d.ts +44 -0
- package/dist/types/conformance.d.ts.map +1 -1
- package/dist/types/evidence/conformance.d.ts +24 -24
- package/dist/types/evidence/contracts.d.ts +42 -42
- package/dist/types/execution-contracts.d.ts +806 -0
- package/dist/types/execution-contracts.d.ts.map +1 -0
- package/dist/types/execution-receipts.d.ts +55 -0
- package/dist/types/execution-receipts.d.ts.map +1 -0
- package/dist/types/graders.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/preferences.d.ts +535 -0
- package/dist/types/preferences.d.ts.map +1 -0
- package/dist/types/review-conformance.d.ts +20 -15
- package/dist/types/review-conformance.d.ts.map +1 -1
- package/dist/types/rollouts.d.ts +221 -0
- package/dist/types/rollouts.d.ts.map +1 -0
- package/dist/types/tasksets.d.ts +89 -0
- package/dist/types/tasksets.d.ts.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-contracts.d.ts","sourceRoot":"","sources":["../../../../src/execution-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcx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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA6D,CAAC;AACrG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGK,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { FailureClass, ImmutableArtifactRef } from "@openpond/harness";
|
|
2
|
+
import { ArtifactManifestContentSchema, EnvironmentReleaseContentSchema, VerifierSetReleaseContentSchema, type ArtifactManifest, type AttemptOutcomeClass, type EnvironmentRelease, type FailureOwner, type RewardComponentReceipt, type RewardReceipt, type VerifierSetRelease } from "./execution-contracts.js";
|
|
3
|
+
import { type TasksetRelease } from "./tasksets.js";
|
|
4
|
+
export declare function createEnvironmentRelease(input: Parameters<typeof EnvironmentReleaseContentSchema.parse>[0]): EnvironmentRelease;
|
|
5
|
+
export declare function createArtifactManifest(input: Parameters<typeof ArtifactManifestContentSchema.parse>[0]): ArtifactManifest;
|
|
6
|
+
export declare function createVerifierSetRelease(input: Parameters<typeof VerifierSetReleaseContentSchema.parse>[0]): VerifierSetRelease;
|
|
7
|
+
export declare function bindTasksetExecutionReleases(input: {
|
|
8
|
+
taskset: TasksetRelease;
|
|
9
|
+
environment: EnvironmentRelease;
|
|
10
|
+
verifierSet: VerifierSetRelease;
|
|
11
|
+
}): TasksetRelease;
|
|
12
|
+
export declare function classifyAttemptOutcome(input: {
|
|
13
|
+
failureClass: FailureClass | null;
|
|
14
|
+
timeoutKind?: "task_deadline" | "infrastructure_timeout";
|
|
15
|
+
}): {
|
|
16
|
+
outcomeClass: AttemptOutcomeClass;
|
|
17
|
+
failureOwner: FailureOwner | null;
|
|
18
|
+
};
|
|
19
|
+
export declare function createRewardReceipt(input: {
|
|
20
|
+
id: string;
|
|
21
|
+
attemptRef: {
|
|
22
|
+
id: string;
|
|
23
|
+
contentHash: string;
|
|
24
|
+
};
|
|
25
|
+
verifierSet: VerifierSetRelease;
|
|
26
|
+
artifactManifest: ArtifactManifest;
|
|
27
|
+
outcomeClass: AttemptOutcomeClass;
|
|
28
|
+
failureOwner: FailureOwner | null;
|
|
29
|
+
components: RewardComponentReceipt[];
|
|
30
|
+
visibleEvidenceRefs?: ImmutableArtifactRef[];
|
|
31
|
+
privilegedEvidenceRefs?: ImmutableArtifactRef[];
|
|
32
|
+
supersedes?: {
|
|
33
|
+
id: string;
|
|
34
|
+
contentHash: string;
|
|
35
|
+
} | null;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
metadata?: Record<string, unknown>;
|
|
38
|
+
}): RewardReceipt;
|
|
39
|
+
export declare function regradeRewardReceipt(input: {
|
|
40
|
+
original: RewardReceipt;
|
|
41
|
+
id: string;
|
|
42
|
+
verifierSet: VerifierSetRelease;
|
|
43
|
+
artifactManifest: ArtifactManifest;
|
|
44
|
+
components: RewardComponentReceipt[];
|
|
45
|
+
outcomeClass?: AttemptOutcomeClass;
|
|
46
|
+
failureOwner?: FailureOwner | null;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
}): RewardReceipt;
|
|
50
|
+
export declare function verifyEnvironmentRelease(release: EnvironmentRelease): boolean;
|
|
51
|
+
export declare function verifyArtifactManifest(manifest: ArtifactManifest): boolean;
|
|
52
|
+
export declare function verifyVerifierSetRelease(release: VerifierSetRelease): boolean;
|
|
53
|
+
export declare function verifyRewardReceipt(receipt: RewardReceipt): boolean;
|
|
54
|
+
export declare function isScorableOutcome(outcome: AttemptOutcomeClass): boolean;
|
|
55
|
+
//# sourceMappingURL=execution-receipts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-receipts.d.ts","sourceRoot":"","sources":["../../../../src/execution-receipts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,OAAO,EACL,6BAA6B,EAE7B,+BAA+B,EAK/B,+BAA+B,EAE/B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACjE,kBAAkB,CAGpB;AAED,wBAAgB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AAC,cAAc,EAAE,CAAC,CAwB5B;AAkDD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from "./compatibility.js";
|
|
2
2
|
export * from "./benchmarks.js";
|
|
3
|
+
export * from "./artifact-verification.js";
|
|
3
4
|
export * from "./evidence/index.js";
|
|
5
|
+
export * from "./execution-contracts.js";
|
|
6
|
+
export * from "./execution-receipts.js";
|
|
4
7
|
export * from "./graders.js";
|
|
5
8
|
export * from "./harness.js";
|
|
6
9
|
export * from "./runs.js";
|
|
7
10
|
export * from "./model-improvement-qualification.js";
|
|
11
|
+
export * from "./preferences.js";
|
|
8
12
|
export * from "./review-conformance.js";
|
|
13
|
+
export * from "./rollouts.js";
|
|
9
14
|
export * from "./tasksets.js";
|
|
10
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ImmutableArtifactRefSchema } from "@openpond/harness";
|
|
3
|
+
import { type ArtifactManifest, type FailureOwner, type RewardComponentReceipt } from "./execution-contracts.js";
|
|
4
|
+
import { type AttemptReceipt, type HarnessCompatibilityReceipt, type RunManifest } from "./runs.js";
|
|
5
|
+
import { type TasksetRelease } from "./tasksets.js";
|
|
6
|
+
export declare const PreferenceComparisonPurposeSchema: z.ZodEnum<{
|
|
7
|
+
validation: "validation";
|
|
8
|
+
frozen_eval: "frozen_eval";
|
|
9
|
+
calibration: "calibration";
|
|
10
|
+
training_reward: "training_reward";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const PreferenceReviewerKindSchema: z.ZodEnum<{
|
|
13
|
+
human: "human";
|
|
14
|
+
model: "model";
|
|
15
|
+
deterministic: "deterministic";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const PreferenceRendererSchema: z.ZodEnum<{
|
|
18
|
+
text: "text";
|
|
19
|
+
code: "code";
|
|
20
|
+
markdown: "markdown";
|
|
21
|
+
json: "json";
|
|
22
|
+
image: "image";
|
|
23
|
+
}>;
|
|
24
|
+
export declare const PreferenceComparisonReleaseContentSchema: z.ZodObject<{
|
|
25
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceComparisonRelease.v1">;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
revision: z.ZodNumber;
|
|
28
|
+
tasksetRelease: z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
contentHash: z.ZodString;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
candidateCount: z.ZodNumber;
|
|
33
|
+
resultMode: z.ZodLiteral<"ordered_tie_groups">;
|
|
34
|
+
allowTies: z.ZodBoolean;
|
|
35
|
+
allowRejectAll: z.ZodBoolean;
|
|
36
|
+
presentation: z.ZodObject<{
|
|
37
|
+
showTaskPrompt: z.ZodBoolean;
|
|
38
|
+
randomizeCandidateOrder: z.ZodBoolean;
|
|
39
|
+
hideModelIdentity: z.ZodBoolean;
|
|
40
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
41
|
+
source: z.ZodEnum<{
|
|
42
|
+
artifact: "artifact";
|
|
43
|
+
attempt_output: "attempt_output";
|
|
44
|
+
}>;
|
|
45
|
+
path: z.ZodString;
|
|
46
|
+
renderer: z.ZodEnum<{
|
|
47
|
+
text: "text";
|
|
48
|
+
code: "code";
|
|
49
|
+
markdown: "markdown";
|
|
50
|
+
json: "json";
|
|
51
|
+
image: "image";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strict>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
rubricRef: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
contentHash: z.ZodString;
|
|
58
|
+
mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
label: z.ZodString;
|
|
64
|
+
instruction: z.ZodString;
|
|
65
|
+
weight: z.ZodNumber;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
assignment: z.ZodObject<{
|
|
68
|
+
strategy: z.ZodLiteral<"randomized_blinded_v1">;
|
|
69
|
+
maxAssignmentsPerCandidate: z.ZodNumber;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
aggregation: z.ZodObject<{
|
|
72
|
+
algorithm: z.ZodLiteral<"mean_pairwise_win_fraction_v1">;
|
|
73
|
+
quorum: z.ZodNumber;
|
|
74
|
+
rejectAllThreshold: z.ZodNumber;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
rewardProjection: z.ZodObject<{
|
|
77
|
+
algorithm: z.ZodLiteral<"pairwise_win_fraction_v1">;
|
|
78
|
+
verifierId: z.ZodString;
|
|
79
|
+
verifierVersion: z.ZodString;
|
|
80
|
+
weight: z.ZodNumber;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
calibration: z.ZodObject<{
|
|
83
|
+
minimumSamples: z.ZodNumber;
|
|
84
|
+
minimumOrderAgreement: z.ZodNumber;
|
|
85
|
+
minimumTieAgreement: z.ZodNumber;
|
|
86
|
+
minimumOrderSwapAgreement: z.ZodNumber;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export declare const PreferenceComparisonReleaseSchema: z.ZodObject<{
|
|
91
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceComparisonRelease.v1">;
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
revision: z.ZodNumber;
|
|
94
|
+
tasksetRelease: z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
contentHash: z.ZodString;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
candidateCount: z.ZodNumber;
|
|
99
|
+
resultMode: z.ZodLiteral<"ordered_tie_groups">;
|
|
100
|
+
allowTies: z.ZodBoolean;
|
|
101
|
+
allowRejectAll: z.ZodBoolean;
|
|
102
|
+
presentation: z.ZodObject<{
|
|
103
|
+
showTaskPrompt: z.ZodBoolean;
|
|
104
|
+
randomizeCandidateOrder: z.ZodBoolean;
|
|
105
|
+
hideModelIdentity: z.ZodBoolean;
|
|
106
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
107
|
+
source: z.ZodEnum<{
|
|
108
|
+
artifact: "artifact";
|
|
109
|
+
attempt_output: "attempt_output";
|
|
110
|
+
}>;
|
|
111
|
+
path: z.ZodString;
|
|
112
|
+
renderer: z.ZodEnum<{
|
|
113
|
+
text: "text";
|
|
114
|
+
code: "code";
|
|
115
|
+
markdown: "markdown";
|
|
116
|
+
json: "json";
|
|
117
|
+
image: "image";
|
|
118
|
+
}>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
rubricRef: z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
contentHash: z.ZodString;
|
|
124
|
+
mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
label: z.ZodString;
|
|
130
|
+
instruction: z.ZodString;
|
|
131
|
+
weight: z.ZodNumber;
|
|
132
|
+
}, z.core.$strict>>;
|
|
133
|
+
assignment: z.ZodObject<{
|
|
134
|
+
strategy: z.ZodLiteral<"randomized_blinded_v1">;
|
|
135
|
+
maxAssignmentsPerCandidate: z.ZodNumber;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
aggregation: z.ZodObject<{
|
|
138
|
+
algorithm: z.ZodLiteral<"mean_pairwise_win_fraction_v1">;
|
|
139
|
+
quorum: z.ZodNumber;
|
|
140
|
+
rejectAllThreshold: z.ZodNumber;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
rewardProjection: z.ZodObject<{
|
|
143
|
+
algorithm: z.ZodLiteral<"pairwise_win_fraction_v1">;
|
|
144
|
+
verifierId: z.ZodString;
|
|
145
|
+
verifierVersion: z.ZodString;
|
|
146
|
+
weight: z.ZodNumber;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
calibration: z.ZodObject<{
|
|
149
|
+
minimumSamples: z.ZodNumber;
|
|
150
|
+
minimumOrderAgreement: z.ZodNumber;
|
|
151
|
+
minimumTieAgreement: z.ZodNumber;
|
|
152
|
+
minimumOrderSwapAgreement: z.ZodNumber;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
contentHash: z.ZodString;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
export declare const ComparisonAssignmentContentSchema: z.ZodObject<{
|
|
158
|
+
schemaVersion: z.ZodLiteral<"openpond.comparisonAssignment.v1">;
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
comparisonRelease: z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
contentHash: z.ZodString;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
taskRef: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
contentHash: z.ZodString;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
lineage: z.ZodObject<{
|
|
169
|
+
tasksetRelease: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
contentHash: z.ZodString;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
harnessReleases: z.ZodArray<z.ZodObject<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
contentHash: z.ZodString;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
runManifestRefs: z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
contentHash: z.ZodString;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
harnessCompatibilityReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
182
|
+
id: z.ZodString;
|
|
183
|
+
contentHash: z.ZodString;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
environmentRelease: z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
contentHash: z.ZodString;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
verifierSetRelease: z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
contentHash: z.ZodString;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
toolContractHash: z.ZodString;
|
|
194
|
+
policyHash: z.ZodString;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
197
|
+
attemptRef: z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
contentHash: z.ZodString;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
runManifestRef: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
contentHash: z.ZodString;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
artifactManifestRef: z.ZodObject<{
|
|
206
|
+
id: z.ZodString;
|
|
207
|
+
contentHash: z.ZodString;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
visibleArtifactIds: z.ZodArray<z.ZodString>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
presentedCandidateOrder: z.ZodArray<z.ZodString>;
|
|
212
|
+
purpose: z.ZodEnum<{
|
|
213
|
+
validation: "validation";
|
|
214
|
+
frozen_eval: "frozen_eval";
|
|
215
|
+
calibration: "calibration";
|
|
216
|
+
training_reward: "training_reward";
|
|
217
|
+
}>;
|
|
218
|
+
createdAt: z.ZodString;
|
|
219
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
export declare const ComparisonAssignmentSchema: z.ZodObject<{
|
|
222
|
+
schemaVersion: z.ZodLiteral<"openpond.comparisonAssignment.v1">;
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
comparisonRelease: z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
contentHash: z.ZodString;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
taskRef: z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
contentHash: z.ZodString;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
lineage: z.ZodObject<{
|
|
233
|
+
tasksetRelease: z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
contentHash: z.ZodString;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
harnessReleases: z.ZodArray<z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
contentHash: z.ZodString;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
runManifestRefs: z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
contentHash: z.ZodString;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
harnessCompatibilityReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
contentHash: z.ZodString;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
environmentRelease: z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
contentHash: z.ZodString;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
verifierSetRelease: z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
contentHash: z.ZodString;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
toolContractHash: z.ZodString;
|
|
258
|
+
policyHash: z.ZodString;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
261
|
+
attemptRef: z.ZodObject<{
|
|
262
|
+
id: z.ZodString;
|
|
263
|
+
contentHash: z.ZodString;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
runManifestRef: z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
contentHash: z.ZodString;
|
|
268
|
+
}, z.core.$strict>;
|
|
269
|
+
artifactManifestRef: z.ZodObject<{
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
contentHash: z.ZodString;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
visibleArtifactIds: z.ZodArray<z.ZodString>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
presentedCandidateOrder: z.ZodArray<z.ZodString>;
|
|
276
|
+
purpose: z.ZodEnum<{
|
|
277
|
+
validation: "validation";
|
|
278
|
+
frozen_eval: "frozen_eval";
|
|
279
|
+
calibration: "calibration";
|
|
280
|
+
training_reward: "training_reward";
|
|
281
|
+
}>;
|
|
282
|
+
createdAt: z.ZodString;
|
|
283
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
+
contentHash: z.ZodString;
|
|
285
|
+
}, z.core.$strict>;
|
|
286
|
+
export declare const PreferenceReceiptContentSchema: z.ZodObject<{
|
|
287
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceReceipt.v1">;
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
assignmentRef: z.ZodObject<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
contentHash: z.ZodString;
|
|
292
|
+
}, z.core.$strict>;
|
|
293
|
+
reviewer: z.ZodObject<{
|
|
294
|
+
kind: z.ZodEnum<{
|
|
295
|
+
human: "human";
|
|
296
|
+
model: "model";
|
|
297
|
+
deterministic: "deterministic";
|
|
298
|
+
}>;
|
|
299
|
+
releaseRef: z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
contentHash: z.ZodString;
|
|
302
|
+
}, z.core.$strict>;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
order: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
305
|
+
rejectAll: z.ZodBoolean;
|
|
306
|
+
criterionScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
307
|
+
feedbackArtifactRef: z.ZodNullable<z.ZodObject<{
|
|
308
|
+
id: z.ZodString;
|
|
309
|
+
contentHash: z.ZodString;
|
|
310
|
+
mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
startedAt: z.ZodString;
|
|
314
|
+
completedAt: z.ZodString;
|
|
315
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
export declare const PreferenceReceiptSchema: z.ZodObject<{
|
|
318
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceReceipt.v1">;
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
assignmentRef: z.ZodObject<{
|
|
321
|
+
id: z.ZodString;
|
|
322
|
+
contentHash: z.ZodString;
|
|
323
|
+
}, z.core.$strict>;
|
|
324
|
+
reviewer: z.ZodObject<{
|
|
325
|
+
kind: z.ZodEnum<{
|
|
326
|
+
human: "human";
|
|
327
|
+
model: "model";
|
|
328
|
+
deterministic: "deterministic";
|
|
329
|
+
}>;
|
|
330
|
+
releaseRef: z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
contentHash: z.ZodString;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
order: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
336
|
+
rejectAll: z.ZodBoolean;
|
|
337
|
+
criterionScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
338
|
+
feedbackArtifactRef: z.ZodNullable<z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
contentHash: z.ZodString;
|
|
341
|
+
mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
startedAt: z.ZodString;
|
|
345
|
+
completedAt: z.ZodString;
|
|
346
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
347
|
+
contentHash: z.ZodString;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
export declare const PreferenceAggregationReceiptContentSchema: z.ZodObject<{
|
|
350
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceAggregationReceipt.v1">;
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
assignmentRef: z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
contentHash: z.ZodString;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
comparisonRelease: z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
contentHash: z.ZodString;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
receiptRefs: z.ZodArray<z.ZodObject<{
|
|
361
|
+
id: z.ZodString;
|
|
362
|
+
contentHash: z.ZodString;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
order: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
365
|
+
rejectAll: z.ZodBoolean;
|
|
366
|
+
pairwiseWinFractions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
367
|
+
quorum: z.ZodNumber;
|
|
368
|
+
createdAt: z.ZodString;
|
|
369
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
export declare const PreferenceAggregationReceiptSchema: z.ZodObject<{
|
|
372
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceAggregationReceipt.v1">;
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
assignmentRef: z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
contentHash: z.ZodString;
|
|
377
|
+
}, z.core.$strict>;
|
|
378
|
+
comparisonRelease: z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
contentHash: z.ZodString;
|
|
381
|
+
}, z.core.$strict>;
|
|
382
|
+
receiptRefs: z.ZodArray<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
contentHash: z.ZodString;
|
|
385
|
+
}, z.core.$strict>>;
|
|
386
|
+
order: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
387
|
+
rejectAll: z.ZodBoolean;
|
|
388
|
+
pairwiseWinFractions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
389
|
+
quorum: z.ZodNumber;
|
|
390
|
+
createdAt: z.ZodString;
|
|
391
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
+
contentHash: z.ZodString;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
export declare const PreferenceCalibrationReportContentSchema: z.ZodObject<{
|
|
395
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceCalibrationReport.v1">;
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
comparisonRelease: z.ZodObject<{
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
contentHash: z.ZodString;
|
|
400
|
+
}, z.core.$strict>;
|
|
401
|
+
automatedReviewer: z.ZodObject<{
|
|
402
|
+
id: z.ZodString;
|
|
403
|
+
contentHash: z.ZodString;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
humanReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
contentHash: z.ZodString;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
modelReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
410
|
+
id: z.ZodString;
|
|
411
|
+
contentHash: z.ZodString;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
sampleCount: z.ZodNumber;
|
|
414
|
+
orderAgreement: z.ZodNumber;
|
|
415
|
+
tieAgreement: z.ZodNumber;
|
|
416
|
+
orderSwapAgreement: z.ZodNumber;
|
|
417
|
+
passed: z.ZodBoolean;
|
|
418
|
+
createdAt: z.ZodString;
|
|
419
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
420
|
+
}, z.core.$strict>;
|
|
421
|
+
export declare const PreferenceCalibrationReportSchema: z.ZodObject<{
|
|
422
|
+
schemaVersion: z.ZodLiteral<"openpond.preferenceCalibrationReport.v1">;
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
comparisonRelease: z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
contentHash: z.ZodString;
|
|
427
|
+
}, z.core.$strict>;
|
|
428
|
+
automatedReviewer: z.ZodObject<{
|
|
429
|
+
id: z.ZodString;
|
|
430
|
+
contentHash: z.ZodString;
|
|
431
|
+
}, z.core.$strict>;
|
|
432
|
+
humanReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
433
|
+
id: z.ZodString;
|
|
434
|
+
contentHash: z.ZodString;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
modelReceiptRefs: z.ZodArray<z.ZodObject<{
|
|
437
|
+
id: z.ZodString;
|
|
438
|
+
contentHash: z.ZodString;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
sampleCount: z.ZodNumber;
|
|
441
|
+
orderAgreement: z.ZodNumber;
|
|
442
|
+
tieAgreement: z.ZodNumber;
|
|
443
|
+
orderSwapAgreement: z.ZodNumber;
|
|
444
|
+
passed: z.ZodBoolean;
|
|
445
|
+
createdAt: z.ZodString;
|
|
446
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
447
|
+
contentHash: z.ZodString;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
export declare function createPreferenceComparisonRelease(input: z.input<typeof PreferenceComparisonReleaseContentSchema>): PreferenceComparisonRelease;
|
|
450
|
+
export declare function verifyPreferenceComparisonRelease(value: unknown): value is PreferenceComparisonRelease;
|
|
451
|
+
export declare function createComparisonAssignment(input: {
|
|
452
|
+
id: string;
|
|
453
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
454
|
+
taskset: TasksetRelease;
|
|
455
|
+
candidates: readonly ComparisonAssignmentCandidateInput[];
|
|
456
|
+
harnessCompatibilityReceipts?: readonly HarnessCompatibilityReceipt[];
|
|
457
|
+
purpose: PreferenceComparisonPurpose;
|
|
458
|
+
presentedCandidateOrder?: readonly string[];
|
|
459
|
+
createdAt: string;
|
|
460
|
+
metadata?: Record<string, unknown>;
|
|
461
|
+
}): ComparisonAssignment;
|
|
462
|
+
export declare function verifyComparisonAssignment(value: unknown): value is ComparisonAssignment;
|
|
463
|
+
export declare function validateComparisonAssignment(assignment: ComparisonAssignment, release: PreferenceComparisonRelease): void;
|
|
464
|
+
export declare function createPreferenceReceipt(input: {
|
|
465
|
+
id: string;
|
|
466
|
+
assignment: ComparisonAssignment;
|
|
467
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
468
|
+
reviewer: PreferenceReviewer;
|
|
469
|
+
order: readonly (readonly string[])[];
|
|
470
|
+
rejectAll: boolean;
|
|
471
|
+
criterionScores?: Record<string, Record<string, number>>;
|
|
472
|
+
feedbackArtifactRef?: z.input<typeof ImmutableArtifactRefSchema> | null;
|
|
473
|
+
startedAt: string;
|
|
474
|
+
completedAt: string;
|
|
475
|
+
metadata?: Record<string, unknown>;
|
|
476
|
+
}): PreferenceReceipt;
|
|
477
|
+
export declare function verifyPreferenceReceipt(value: unknown): value is PreferenceReceipt;
|
|
478
|
+
export declare function aggregatePreferenceReceipts(input: {
|
|
479
|
+
id: string;
|
|
480
|
+
assignment: ComparisonAssignment;
|
|
481
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
482
|
+
receipts: readonly PreferenceReceipt[];
|
|
483
|
+
createdAt: string;
|
|
484
|
+
metadata?: Record<string, unknown>;
|
|
485
|
+
}): PreferenceAggregationReceipt;
|
|
486
|
+
export declare function verifyPreferenceAggregationReceipt(value: unknown): value is PreferenceAggregationReceipt;
|
|
487
|
+
export declare function createPreferenceCalibrationReport(input: {
|
|
488
|
+
id: string;
|
|
489
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
490
|
+
pairs: readonly PreferenceCalibrationPair[];
|
|
491
|
+
createdAt: string;
|
|
492
|
+
metadata?: Record<string, unknown>;
|
|
493
|
+
}): PreferenceCalibrationReport;
|
|
494
|
+
export declare function verifyPreferenceCalibrationReport(value: unknown): value is PreferenceCalibrationReport;
|
|
495
|
+
export declare function projectPairwiseWinFraction(input: {
|
|
496
|
+
assignment: ComparisonAssignment;
|
|
497
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
498
|
+
result: PreferenceReceipt | PreferenceAggregationReceipt;
|
|
499
|
+
}): Record<string, number>;
|
|
500
|
+
export declare function createPreferenceRewardComponents(input: {
|
|
501
|
+
assignment: ComparisonAssignment;
|
|
502
|
+
comparisonRelease: PreferenceComparisonRelease;
|
|
503
|
+
result: PreferenceReceipt | PreferenceAggregationReceipt;
|
|
504
|
+
calibrationReport?: PreferenceCalibrationReport | null;
|
|
505
|
+
candidates?: readonly PreferenceCandidateEligibility[];
|
|
506
|
+
}): Record<string, RewardComponentReceipt>;
|
|
507
|
+
export type PreferenceComparisonPurpose = z.infer<typeof PreferenceComparisonPurposeSchema>;
|
|
508
|
+
export type PreferenceReviewerKind = z.infer<typeof PreferenceReviewerKindSchema>;
|
|
509
|
+
export type PreferenceComparisonRelease = z.infer<typeof PreferenceComparisonReleaseSchema>;
|
|
510
|
+
export type ComparisonAssignment = z.infer<typeof ComparisonAssignmentSchema>;
|
|
511
|
+
export type PreferenceReceipt = z.infer<typeof PreferenceReceiptSchema>;
|
|
512
|
+
export type PreferenceAggregationReceipt = z.infer<typeof PreferenceAggregationReceiptSchema>;
|
|
513
|
+
export type PreferenceCalibrationReport = z.infer<typeof PreferenceCalibrationReportSchema>;
|
|
514
|
+
export type PreferenceReviewer = z.infer<typeof PreferenceReceiptSchema>["reviewer"];
|
|
515
|
+
export type ComparisonAssignmentCandidateInput = {
|
|
516
|
+
attempt: AttemptReceipt;
|
|
517
|
+
artifactManifest: ArtifactManifest;
|
|
518
|
+
runManifest: RunManifest;
|
|
519
|
+
visibleArtifactIds: readonly string[];
|
|
520
|
+
};
|
|
521
|
+
export type PreferenceCandidateEligibility = {
|
|
522
|
+
attemptRef: {
|
|
523
|
+
id: string;
|
|
524
|
+
contentHash: string;
|
|
525
|
+
};
|
|
526
|
+
eligible: boolean;
|
|
527
|
+
failureOwner?: FailureOwner;
|
|
528
|
+
};
|
|
529
|
+
export type PreferenceCalibrationPair = {
|
|
530
|
+
assignment: ComparisonAssignment;
|
|
531
|
+
human: PreferenceReceipt;
|
|
532
|
+
model: PreferenceReceipt;
|
|
533
|
+
swappedModel?: PreferenceReceipt;
|
|
534
|
+
};
|
|
535
|
+
//# sourceMappingURL=preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../../src/preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,0BAA0B,EAO3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,iCAAiC;;;;;EAK5C,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;EAIvC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAC;AAuDH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsBnD,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEnC,CAAC;AA6DZ,eAAO,MAAM,iCAAiC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