openpond-sdk 0.5.27 → 0.5.28
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/TASKSETS.md +20 -4
- package/dist/{chunk-S7I45WJQ.js → chunk-2U54EOXJ.js} +3 -2
- package/dist/chunk-2U54EOXJ.js.map +7 -0
- package/dist/{chunk-IDLMILN4.js → chunk-B3CH4V35.js} +21 -14
- package/dist/chunk-B3CH4V35.js.map +7 -0
- package/dist/{chunk-ULQC4SQF.js → chunk-FFRYTXGF.js} +3 -3
- package/dist/{chunk-AUQOAMHL.js → chunk-O27OEXXB.js} +2 -2
- package/dist/{chunk-DV7XI3UE.js → chunk-ZIMHPYXL.js} +2 -2
- package/dist/model-starter-catalog.js +3 -3
- package/dist/model-starters.js +3 -3
- package/dist/model-taskset-authoring.js +1 -1
- package/dist/taskset-drafts.js +3 -3
- package/dist/taskset-packages.js +206 -44
- package/dist/taskset-packages.js.map +4 -4
- package/dist/training-bundle.js +3 -3
- package/dist/types/packages/sdk/src/model-bound-taskset-authoring.d.ts +10 -0
- package/dist/types/packages/sdk/src/model-bound-taskset-authoring.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/model-ordinary-taskset-reward.d.ts +16 -0
- package/dist/types/packages/sdk/src/model-ordinary-taskset-reward.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/model-taskset-authoring-contracts.d.ts +1 -0
- package/dist/types/packages/sdk/src/model-taskset-authoring-contracts.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-taskset-authoring.d.ts +1 -0
- package/dist/types/packages/sdk/src/model-taskset-authoring.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-taskset-derivation.d.ts +11 -0
- package/dist/types/packages/sdk/src/model-taskset-derivation.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-api-contracts.d.ts +2 -0
- package/dist/types/packages/sdk/src/taskset-draft-api-contracts.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-client.d.ts +6 -0
- package/dist/types/packages/sdk/src/taskset-draft-client.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-document.d.ts +1 -0
- package/dist/types/packages/sdk/src/taskset-draft-document.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-package-compiler.d.ts +3 -0
- package/dist/types/packages/sdk/src/taskset-draft-package-compiler.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-source.d.ts +2 -0
- package/dist/types/packages/sdk/src/taskset-draft-source.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-draft-workspace.d.ts +2 -0
- package/dist/types/packages/sdk/src/taskset-draft-workspace.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-package-client.d.ts +3 -0
- package/dist/types/packages/sdk/src/taskset-package-client.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-package-contracts.d.ts +2 -0
- package/dist/types/packages/sdk/src/taskset-package-contracts.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-package-projection.d.ts +1 -0
- package/dist/types/packages/sdk/src/taskset-package-projection.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/taskset-packages.d.ts +1 -0
- package/dist/types/packages/sdk/src/taskset-packages.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-IDLMILN4.js.map +0 -7
- package/dist/chunk-S7I45WJQ.js.map +0 -7
- /package/dist/{chunk-ULQC4SQF.js.map → chunk-FFRYTXGF.js.map} +0 -0
- /package/dist/{chunk-AUQOAMHL.js.map → chunk-O27OEXXB.js.map} +0 -0
- /package/dist/{chunk-DV7XI3UE.js.map → chunk-ZIMHPYXL.js.map} +0 -0
|
@@ -62,6 +62,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
62
62
|
revision: number;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
+
authoringGraph?: "bound" | undefined;
|
|
65
66
|
} | undefined;
|
|
66
67
|
} | null;
|
|
67
68
|
name: string;
|
|
@@ -567,6 +568,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
567
568
|
revision: number;
|
|
568
569
|
};
|
|
569
570
|
};
|
|
571
|
+
authoringGraph?: "bound" | undefined;
|
|
570
572
|
} | undefined;
|
|
571
573
|
} | null;
|
|
572
574
|
name: string;
|
|
@@ -1093,6 +1095,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
1093
1095
|
revision: number;
|
|
1094
1096
|
};
|
|
1095
1097
|
};
|
|
1098
|
+
authoringGraph?: "bound" | undefined;
|
|
1096
1099
|
} | undefined;
|
|
1097
1100
|
} | null;
|
|
1098
1101
|
name: string;
|
|
@@ -1598,6 +1601,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
1598
1601
|
revision: number;
|
|
1599
1602
|
};
|
|
1600
1603
|
};
|
|
1604
|
+
authoringGraph?: "bound" | undefined;
|
|
1601
1605
|
} | undefined;
|
|
1602
1606
|
} | null;
|
|
1603
1607
|
name: string;
|
|
@@ -2103,6 +2107,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
2103
2107
|
revision: number;
|
|
2104
2108
|
};
|
|
2105
2109
|
};
|
|
2110
|
+
authoringGraph?: "bound" | undefined;
|
|
2106
2111
|
} | undefined;
|
|
2107
2112
|
} | null;
|
|
2108
2113
|
name: string;
|
|
@@ -2637,6 +2642,7 @@ export declare class OpenPondTasksetDraftClient {
|
|
|
2637
2642
|
revision: number;
|
|
2638
2643
|
};
|
|
2639
2644
|
};
|
|
2645
|
+
authoringGraph?: "bound" | undefined;
|
|
2640
2646
|
} | undefined;
|
|
2641
2647
|
} | null;
|
|
2642
2648
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-draft-client.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8F,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAKlN,OAAO,EAAmC,KA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;;;;;;;;;;;;;;;;IAOhF,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,6BAA6B,EAAE,OAAO,GAAE,OAAY;;;;;;;;;;;;;;;;;;;;;IAStG,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B,EAAE,OAAO,GAAE,OAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUtG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,OAAO,GAAE,OAAY;;;;;;;;CAiDpG"}
|
|
@@ -111,6 +111,7 @@ export declare const TasksetDraftSchema: z.ZodObject<{
|
|
|
111
111
|
revision: z.ZodNumber;
|
|
112
112
|
}, z.core.$strict>;
|
|
113
113
|
}, z.core.$strict>;
|
|
114
|
+
authoringGraph: z.ZodOptional<z.ZodLiteral<"bound">>;
|
|
114
115
|
}, z.core.$strict>>;
|
|
115
116
|
}, z.core.$strict>>>;
|
|
116
117
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-draft-document.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwCxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAazC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBA2B3C,CAAC;AAEH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqE7B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ModelTasksetDraftPreparation } from "./model-taskset-authoring-contracts.js";
|
|
2
2
|
import { type TasksetDraftWorkspace } from "./taskset-draft-workspace.js";
|
|
3
|
+
import { type TasksetPackage } from "./taskset-package-contracts.js";
|
|
3
4
|
/** Use the same validation, file pinning and release projection as Desktop.
|
|
4
5
|
* Compilation neither executes models/graders nor selects the resulting release.
|
|
5
6
|
* The host supplies its retained preparation and later commits Model/draft CAS. */
|
|
@@ -8,6 +9,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
8
9
|
preparation: ModelTasksetDraftPreparation | null;
|
|
9
10
|
adapterId: string;
|
|
10
11
|
now: string;
|
|
12
|
+
source?: TasksetPackage;
|
|
11
13
|
}): {
|
|
12
14
|
schemaVersion: "openpond.tasksetPackage.v1";
|
|
13
15
|
taskset: {
|
|
@@ -731,6 +733,7 @@ export declare function compileModelTasksetDraftWorkspace(input: {
|
|
|
731
733
|
})[] | undefined;
|
|
732
734
|
};
|
|
733
735
|
} | undefined;
|
|
736
|
+
instructionMode?: "per_task" | undefined;
|
|
734
737
|
} | undefined;
|
|
735
738
|
learningResources?: {
|
|
736
739
|
batch: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-draft-package-compiler.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-package-compiler.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAG/H,OAAO,EAAkE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"taskset-draft-package-compiler.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-package-compiler.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAG/H,OAAO,EAAkE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAI1I,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAE3F;;mFAEmF;AACnF,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,SAAS,EAAE,qBAAqB,CAAC;IACjC,WAAW,EAAE,4BAA4B,GAAG,IAAI,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BA"}
|
|
@@ -40,6 +40,7 @@ export declare const TasksetDraftSourceInitializationSchema: z.ZodObject<{
|
|
|
40
40
|
revision: z.ZodNumber;
|
|
41
41
|
}, z.core.$strict>;
|
|
42
42
|
}, z.core.$strict>;
|
|
43
|
+
authoringGraph: z.ZodOptional<z.ZodLiteral<"bound">>;
|
|
43
44
|
}, z.core.$strict>>;
|
|
44
45
|
}, z.core.$strict>>>;
|
|
45
46
|
name: z.ZodString;
|
|
@@ -825,6 +826,7 @@ export declare function materializeTasksetDraftWorkspace(input: {
|
|
|
825
826
|
revision: number;
|
|
826
827
|
};
|
|
827
828
|
};
|
|
829
|
+
authoringGraph?: "bound" | undefined;
|
|
828
830
|
} | undefined;
|
|
829
831
|
} | null;
|
|
830
832
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-draft-source.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAkE,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3J,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEpF,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAK7F,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"taskset-draft-source.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAkE,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3J,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEpF,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAK7F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BhI"}
|
|
@@ -46,6 +46,7 @@ declare const WorkspaceContentSchema: z.ZodObject<{
|
|
|
46
46
|
revision: z.ZodNumber;
|
|
47
47
|
}, z.core.$strict>;
|
|
48
48
|
}, z.core.$strict>;
|
|
49
|
+
authoringGraph: z.ZodOptional<z.ZodLiteral<"bound">>;
|
|
49
50
|
}, z.core.$strict>>;
|
|
50
51
|
}, z.core.$strict>>>;
|
|
51
52
|
name: z.ZodString;
|
|
@@ -819,6 +820,7 @@ export declare const TasksetDraftWorkspaceSchema: z.ZodObject<{
|
|
|
819
820
|
revision: z.ZodNumber;
|
|
820
821
|
}, z.core.$strict>;
|
|
821
822
|
}, z.core.$strict>;
|
|
823
|
+
authoringGraph: z.ZodOptional<z.ZodLiteral<"bound">>;
|
|
822
824
|
}, z.core.$strict>>;
|
|
823
825
|
}, z.core.$strict>>>;
|
|
824
826
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-draft-workspace.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-draft-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA8D,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAInJ,eAAO,MAAM,iCAAiC,QAAmB,CAAC;AAElE,eAAO,MAAM,+BAA+B;;;;;kBAKjC,CAAC;AACZ,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"taskset-draft-workspace.d.ts","sourceRoot":"","sources":["../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AED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAiBnF;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM;;;;;;;;;;;;EAQvF;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,qBAAqB;;;;;;;EAM1E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IAAE,SAAS,EAAE,qBAAqB,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAgBhL;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IAAE,SAAS,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,wBAAwB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAejK;AASD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,yBAAyB,GAAG,UAAU,CAS5F"}
|
|
@@ -1121,6 +1121,7 @@ export declare const TasksetPackagePublicationSchema: z.ZodObject<{
|
|
|
1121
1121
|
}, z.core.$strict>>;
|
|
1122
1122
|
contentHash: z.ZodString;
|
|
1123
1123
|
}, z.core.$strict>>;
|
|
1124
|
+
instructionMode: z.ZodOptional<z.ZodLiteral<"per_task">>;
|
|
1124
1125
|
}, z.core.$strict>>;
|
|
1125
1126
|
learningResources: z.ZodOptional<z.ZodObject<{
|
|
1126
1127
|
batch: z.ZodObject<{
|
|
@@ -2628,6 +2629,7 @@ export declare const TasksetPackagePublicationSchema: z.ZodObject<{
|
|
|
2628
2629
|
}, z.core.$strict>>;
|
|
2629
2630
|
contentHash: z.ZodString;
|
|
2630
2631
|
}, z.core.$strict>>;
|
|
2632
|
+
instructionMode: z.ZodOptional<z.ZodLiteral<"per_task">>;
|
|
2631
2633
|
}, z.core.$strict>>;
|
|
2632
2634
|
learningResources: z.ZodOptional<z.ZodObject<{
|
|
2633
2635
|
batch: z.ZodObject<{
|
|
@@ -4191,6 +4193,7 @@ export declare const TasksetPackageReadbackSchema: z.ZodObject<{
|
|
|
4191
4193
|
}, z.core.$strict>>;
|
|
4192
4194
|
contentHash: z.ZodString;
|
|
4193
4195
|
}, z.core.$strict>>;
|
|
4196
|
+
instructionMode: z.ZodOptional<z.ZodLiteral<"per_task">>;
|
|
4194
4197
|
}, z.core.$strict>>;
|
|
4195
4198
|
learningResources: z.ZodOptional<z.ZodObject<{
|
|
4196
4199
|
batch: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-package-client.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAwG,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAO3K;0EAC0E;AAC1E,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGkG,CAAC;AACtJ,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"taskset-package-client.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAwG,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAO3K;0EAC0E;AAC1E,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGkG,CAAC;AACtJ,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CAAC,KAAK,CAAA;KAAE;IAMnG,OAAO,CAAC,KAAK,EAAE,yBAAyB,EAAE,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAO,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAoCjH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,EAAE,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,cAAc,CAAC;CAwC5L"}
|
|
@@ -1009,6 +1009,7 @@ export declare const TasksetPackageContentSchema: z.ZodObject<{
|
|
|
1009
1009
|
}, z.core.$strict>>;
|
|
1010
1010
|
contentHash: z.ZodString;
|
|
1011
1011
|
}, z.core.$strict>>;
|
|
1012
|
+
instructionMode: z.ZodOptional<z.ZodLiteral<"per_task">>;
|
|
1012
1013
|
}, z.core.$strict>>;
|
|
1013
1014
|
learningResources: z.ZodOptional<z.ZodObject<{
|
|
1014
1015
|
batch: z.ZodObject<{
|
|
@@ -2425,6 +2426,7 @@ export declare const TasksetPackageSchema: z.ZodObject<{
|
|
|
2425
2426
|
}, z.core.$strict>>;
|
|
2426
2427
|
contentHash: z.ZodString;
|
|
2427
2428
|
}, z.core.$strict>>;
|
|
2429
|
+
instructionMode: z.ZodOptional<z.ZodLiteral<"per_task">>;
|
|
2428
2430
|
}, z.core.$strict>>;
|
|
2429
2431
|
learningResources: z.ZodOptional<z.ZodObject<{
|
|
2430
2432
|
batch: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-package-contracts.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,wBAAwB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAmG,CAAC;AACrI,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,8EAA8E;AAC9E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEhE;AAED;uEACuE;AACvE,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,gBAAgB,GAAG,mBAAmB,CAAC,GAAG,MAAM,CAMzI;AAED;iFACiF;AACjF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAqErE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,GAAG,cAAc,CAIvG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-package-projection.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-projection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuF,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAE1J;8EAC8E;AAC9E,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,OAAO,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;CAC7E
|
|
1
|
+
{"version":3,"file":"taskset-package-projection.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-package-projection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuF,KAAK,cAAc,EAAE,MAAM,gCAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEA;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5H,oFAAoF;AACpF,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAErF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./taskset-package-contracts.js";
|
|
2
|
+
export { bindOrdinaryModelTasksetReward } from "./model-ordinary-taskset-reward.js";
|
|
2
3
|
export * from "./taskset-package-client.js";
|
|
3
4
|
export * from "./taskset-package-learning.js";
|
|
4
5
|
export * from "./model-batch-review.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskset-packages.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-packages.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC7G,OAAO,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAC;AACtJ,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,sCAAsC,EAAE,yBAAyB,EAAE,gCAAgC,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"taskset-packages.d.ts","sourceRoot":"","sources":["../../../../../src/taskset-packages.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC7G,OAAO,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAC;AACtJ,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,sCAAsC,EAAE,yBAAyB,EAAE,gCAAgC,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/model-starter-execution.ts", "../src/model-taskset-resources.ts", "../src/model-taskset-derivation.ts", "../src/taskset-package-learning.ts", "../src/taskset-package-files.ts", "../src/taskset-package-execution.ts", "../src/taskset-package-contracts.ts", "../src/model-taskset-authoring-lineage.ts"],
|
|
4
|
-
"sourcesContent": ["import { z } from \"zod\";\nimport { EnvironmentReleaseSchema, VerifierSetReleaseSchema } from \"@openpond/evals\";\nimport { JavaScriptEnvironmentDefinitionSchema, assertJavaScriptEnvironmentDefinition } from \"@openpond/evals/javascript-environment\";\nimport { createLearningTextAsset, learningRef, sealLearningContent, verifyLearningTextAsset, type LearningTextAsset } from \"@openpond/evals/learning\";\nimport { assertBoundedTaskJson } from \"@openpond/evals/task-schema\";\nimport type { TasksetRelease } from \"@openpond/evals/tasksets\";\nimport { canonicalJson } from \"./protocol.js\";\nimport { ModelProjectVersionedRefSchema } from \"./model-projects.js\";\n\nconst HashSchema = z.string().regex(/^[a-f0-9]{64}$/);\nexport const ModelStarterEnvironmentAttemptSchema = /* @__PURE__ */ (() => z.object({\n schemaVersion: z.literal(\"openpond.javascriptEnvironmentAttempt.v1\"), taskId: z.string(),\n status: z.enum([\"completed\", \"budget_exhausted\", \"cancelled\", \"timed_out\", \"policy_failure\", \"environment_failure\"]),\n output: z.string().nullable(), collected: z.boolean(), environmentCleanupComplete: z.boolean(),\n snapshot: z.object({ definition: ModelProjectVersionedRefSchema, inputHash: HashSchema, seed: z.number().int(), initialStateHash: HashSchema, finalStateHash: HashSchema, state: z.record(z.string(), z.unknown()), events: z.array(z.record(z.string(), z.unknown())) }).strict().nullable(),\n messages: z.array(z.unknown()), error: z.string().nullable(), contentHash: HashSchema,\n}).strict())();\n\n/** Validate an owner-recorded runtime artifact against the admitted task.\n * Provenance/ownership of the artifact remains the execution host's concern. */\nexport function verifyModelStarterEnvironmentAttempt(value: unknown, context: { taskId: string; input: Record<string, unknown>; seed: number; javascript: z.infer<typeof ModelProjectVersionedRefSchema> }) {\n assertBoundedTaskJson(value, 16_777_216);\n const result = ModelStarterEnvironmentAttemptSchema.parse(value);\n const { contentHash, ...content } = result;\n if (sealLearningContent(content).contentHash !== contentHash || result.taskId !== context.taskId || (result.snapshot && (\n !equal(result.snapshot.definition, context.javascript) || result.snapshot.inputHash !== sealLearningContent(context.input).contentHash || result.snapshot.seed !== context.seed || result.snapshot.finalStateHash !== sealLearningContent(result.snapshot.state).contentHash\n ))) throw new Error(\"Starter environment attempt differs from its admitted task or recorded bytes.\");\n return result;\n}\n\nexport const ModelStarterExecutionSchema = z.object({\n environment: EnvironmentReleaseSchema,\n verifierSet: VerifierSetReleaseSchema,\n javascript: JavaScriptEnvironmentDefinitionSchema,\n}).strict();\nexport type ModelStarterExecution = z.infer<typeof ModelStarterExecutionSchema>;\nexport const ModelStarterToolFixtureScriptSchema = z.object({\n actions: z.array(z.object({ name: z.string().min(1).max(64), arguments: z.record(z.string(), z.unknown()) }).strict()).max(1_000),\n}).strict();\nexport type ModelStarterExecutionContext = Pick<TasksetRelease, \"environment\" | \"environmentRelease\" | \"verifierSetRelease\" | \"tools\" | \"capabilities\" | \"policy\" | \"graders\" | \"tasks\">;\n\n/** Derivable from immutable Taskset refs, without putting private code in its metadata. */\nexport function modelStarterExecutionAssetId(context: Pick<ModelStarterExecutionContext, \"environmentRelease\" | \"verifierSetRelease\">): string {\n if (!context.environmentRelease || !context.verifierSetRelease) throw new Error(\"Starter execution release references are missing.\");\n return `starter-execution-${sealLearningContent({ environment: context.environmentRelease, verifiers: context.verifierSetRelease }).contentHash}`;\n}\n\n/** Persist alongside the package's private assets in the same creation transaction.\n * The existing authored-text resource bound also applies to this small closure. */\nexport function createModelStarterExecutionAsset(value: ModelStarterExecution): LearningTextAsset {\n const execution = ModelStarterExecutionSchema.parse(value);\n assertExecutionIntegrity(execution);\n const id = modelStarterExecutionAssetId({ environmentRelease: { id: execution.environment.id, contentHash: execution.environment.contentHash }, verifierSetRelease: { id: execution.verifierSet.id, contentHash: execution.verifierSet.contentHash } });\n const generated = createLearningTextAsset({ text: canonicalJson(execution), path: \"environment/execution.json\", mediaType: \"application/json\", visibility: \"host_private\" });\n const { contentHash: _hash, ...content } = generated;\n return sealLearningContent({ ...content, id, asset: { ...content.asset, id } });\n}\n\n/** The caller owns and verifies the Taskset manifest; this verifies its private\n * resource graph. Passing selected immutable task rows permits bounded hydration. */\nexport function resolveModelStarterExecutionAsset(context: ModelStarterExecutionContext, asset: LearningTextAsset, assets: LearningTextAsset[]): ModelStarterExecution {\n if (asset.id !== modelStarterExecutionAssetId(context) || asset.asset.visibility !== \"host_private\" || asset.asset.mediaType !== \"application/json\") throw new Error(\"Starter execution asset differs from its Taskset references.\");\n const execution = ModelStarterExecutionSchema.parse(JSON.parse(verifyLearningTextAsset(asset, asset.asset)));\n validateModelStarterExecution(execution, context, assets);\n return execution;\n}\n\nfunction equal(left: unknown, right: unknown): boolean {\n return sealLearningContent({ value: left }).contentHash === sealLearningContent({ value: right }).contentHash;\n}\n\nfunction assertExecutionIntegrity(execution: ModelStarterExecution): void {\n assertJavaScriptEnvironmentDefinition(execution.javascript);\n for (const resource of [execution.environment, execution.verifierSet]) {\n const { contentHash, ...content } = resource;\n if (sealLearningContent(content).contentHash !== contentHash) throw new Error(`Starter execution resource integrity failed: ${resource.id}.`);\n }\n if (!equal(execution.environment.metadata.javascriptEnvironment, learningRef(execution.javascript))) throw new Error(\"Starter execution resources differ from its declared task context.\");\n}\n\n/** Close executable dependencies before a host persists or runs a package. */\nexport function validateModelStarterExecution(\n execution: ModelStarterExecution | undefined,\n taskset: ModelStarterExecutionContext,\n assets: LearningTextAsset[],\n): void {\n if (!execution) {\n if (taskset.environment.entrypoint === \"openpond.javascript-environment.v1\") throw new Error(\"Starter JavaScript execution resources are missing.\");\n return;\n }\n const { environment, verifierSet, javascript } = execution;\n assertExecutionIntegrity(execution);\n if (!equal(taskset.environmentRelease, { id: environment.id, contentHash: environment.contentHash }) ||\n !equal(taskset.verifierSetRelease, { id: verifierSet.id, contentHash: verifierSet.contentHash }) ||\n !equal(environment.contract, taskset.environment) || !equal(verifierSet.graders, taskset.graders) ||\n !equal(taskset.tools, javascript.tools) || !equal(environment.metadata.javascriptEnvironment, learningRef(javascript))) {\n throw new Error(\"Starter execution resources differ from its declared task context.\");\n }\n const contract = environment.contract;\n if (contract.entrypoint !== \"openpond.javascript-environment.v1\" || contract.kind !== \"agent\" ||\n !contract.stateful || !contract.deterministicSeeds || contract.networkPolicy !== \"none\" ||\n new Set(contract.lifecycle).size !== 5 || taskset.capabilities.length || taskset.policy.connectedAppScopes.length) {\n throw new Error(\"Starter JavaScript environment declares unsupported host capabilities.\");\n }\n for (const reference of [javascript.module, environment.actionSchemaRef, environment.observationSchemaRef, environment.stateSchemaRef]) {\n if (!reference) continue;\n const asset = assets.find(asset => asset.id === reference.id);\n if (!asset) throw new Error(`Starter environment asset is missing: ${reference.id}.`);\n verifyLearningTextAsset(asset, reference);\n }\n for (const task of taskset.tasks) {\n const asset = assets.find(asset => asset.id === task.privilegedContextRef);\n if (!asset || asset.asset.visibility !== \"host_private\" || asset.asset.mediaType !== \"application/json\") {\n throw new Error(`Starter private initial state is missing: ${task.id}.`);\n }\n const state: unknown = JSON.parse(verifyLearningTextAsset(asset, asset.asset));\n if (!state || typeof state !== \"object\" || Array.isArray(state)) throw new Error(`Starter initial state must be a JSON object: ${task.id}.`);\n assertBoundedTaskJson(state, javascript.maxStateBytes);\n }\n}\n", "import { z } from \"zod\";\nimport { EnvironmentReleaseSchema, VerifierSetReleaseSchema, verifyEnvironmentRelease, verifyVerifierSetRelease } from \"@openpond/evals\";\nimport { createLearningTextAsset, sealLearningContent, verifyLearningTextAsset, type LearningTextAsset } from \"@openpond/evals/learning\";\nimport type { TasksetRelease } from \"@openpond/evals/tasksets\";\nimport { canonicalJson } from \"./protocol.js\";\n\nexport const ModelTasksetExecutionResourcesSchema = z.object({ environment: EnvironmentReleaseSchema, verifierSet: VerifierSetReleaseSchema }).strict();\ntype Resources = z.infer<typeof ModelTasksetExecutionResourcesSchema>;\ntype Context = Pick<TasksetRelease, \"environmentRelease\" | \"verifierSetRelease\" | \"environment\" | \"graders\">;\n\n/** Private resource identity follows the exact published execution references. */\nexport function modelTasksetExecutionResourcesAssetId(context: Pick<Context, \"environmentRelease\" | \"verifierSetRelease\">): string {\n if (!context.environmentRelease || !context.verifierSetRelease) throw new Error(\"Taskset execution references are missing.\");\n return `taskset-execution-${sealLearningContent({ environment: context.environmentRelease, verifiers: context.verifierSetRelease }).contentHash}`;\n}\n\nexport function createModelTasksetExecutionResourcesAsset(value: Resources): LearningTextAsset {\n const resources = ModelTasksetExecutionResourcesSchema.parse({ environment: value.environment, verifierSet: value.verifierSet });\n assertIntegrity(resources);\n const id = modelTasksetExecutionResourcesAssetId({ environmentRelease: { id: resources.environment.id, contentHash: resources.environment.contentHash }, verifierSetRelease: { id: resources.verifierSet.id, contentHash: resources.verifierSet.contentHash } });\n const { contentHash: _hash, ...asset } = createLearningTextAsset({ text: canonicalJson(resources), path: \"environment/resources.json\", mediaType: \"application/json\", visibility: \"host_private\" });\n return sealLearningContent({ ...asset, id, asset: { ...asset.asset, id } });\n}\n\n/** Resolve text or tool execution resources without trusting an asset's ID alone. */\nexport function resolveModelTasksetExecutionResourcesAsset(context: Context, asset: LearningTextAsset): Resources {\n if (asset.id !== modelTasksetExecutionResourcesAssetId(context) || asset.asset.visibility !== \"host_private\" || asset.asset.mediaType !== \"application/json\") throw new Error(\"Taskset execution asset differs from its published references.\");\n const resources = ModelTasksetExecutionResourcesSchema.parse(JSON.parse(verifyLearningTextAsset(asset, asset.asset)));\n assertIntegrity(resources);\n if (asset.id !== createModelTasksetExecutionResourcesAsset(resources).id || canonicalJson(context.environment) !== canonicalJson(resources.environment.contract) || canonicalJson(context.graders) !== canonicalJson(resources.verifierSet.graders)) throw new Error(\"Taskset differs from its execution resources.\");\n return resources;\n}\n\nfunction assertIntegrity(resources: Resources): void {\n if (!verifyEnvironmentRelease(resources.environment) || !verifyVerifierSetRelease(resources.verifierSet)) throw new Error(\"Taskset execution resource integrity failed.\");\n}\n", "import { z } from \"zod\";\nimport { createEnvironmentRelease, createVerifierSetRelease, verifyEnvironmentRelease, verifyVerifierSetRelease } from \"@openpond/evals\";\nimport { LearningTextAssetSchema, TaskDefinitionSchema, assertLearningContentHash, learningRef, sameLearningRef, sealLearningContent, verifyLearningTextAsset } from \"@openpond/evals/learning\";\nimport { RewardBindingSchema, RewardReleaseSchema, compileBoundGraders } from \"@openpond/evals/rewards\";\nimport { TasksetReleaseSchema, assertTasksetRelease } from \"@openpond/evals/tasksets\";\nimport { validateTaskValue } from \"@openpond/evals/task-schema\";\n\nimport { ModelProjectVersionedRefSchema } from \"./model-projects.js\";\nimport { ModelStarterExecutionSchema, validateModelStarterExecution } from \"./model-starter-execution.js\";\nimport { ModelTasksetExecutionResourcesSchema } from \"./model-taskset-resources.js\";\n\nconst OwnerSchema = z.object({ scopeId: z.string().trim().min(1).max(500), modelId: z.string().trim().min(1).max(500) }).strict();\nexport const ModelTasksetDerivationSchema = z.object({\n schemaVersion: z.literal(\"openpond.modelTasksetDerivation.v1\"),\n owner: OwnerSchema,\n root: ModelProjectVersionedRefSchema,\n parent: ModelProjectVersionedRefSchema,\n}).strict();\n\n/** Immutable executable resources, independent of a catalog listing. */\nexport const ModelTasksetPackageSchema = z.object({\n taskset: TasksetReleaseSchema,\n taskDefinition: TaskDefinitionSchema,\n rewardBinding: RewardBindingSchema,\n rewards: z.array(RewardReleaseSchema).min(1).max(100),\n assets: z.array(LearningTextAssetSchema).max(1_000),\n executionResources: ModelTasksetExecutionResourcesSchema.optional(),\n execution: ModelStarterExecutionSchema.optional(),\n}).strict();\nexport type ModelTasksetPackage = z.infer<typeof ModelTasksetPackageSchema>;\n\nconst same = (left: unknown, right: unknown) => sealLearningContent({ value: left }).contentHash === sealLearningContent({ value: right }).contentHash;\nconst identity = (owner: z.infer<typeof OwnerSchema>, root: z.infer<typeof ModelProjectVersionedRefSchema>) => `model-taskset-${sealLearningContent({ owner, root }).contentHash}`;\n\n/** Hosts authorize the source and owner, upload immutable files, then commit\n * this result together with the model CAS and operation receipt. This pure\n * compiler neither allocates a new identity on retry nor changes a consumer. */\nexport function deriveModelTaskset(input: {\n owner: z.input<typeof OwnerSchema>;\n source: ModelTasksetPackage;\n rewardBinding: z.infer<typeof RewardBindingSchema>;\n rewards: z.infer<typeof RewardReleaseSchema>[];\n assets: z.infer<typeof LearningTextAssetSchema>[];\n}): ModelTasksetPackage {\n const owner = OwnerSchema.parse(input.owner);\n const source = validateModelTasksetPackage(input.source);\n const previous = source.taskset.metadata.modelTasksetDerivation === undefined ? null : ModelTasksetDerivationSchema.parse(source.taskset.metadata.modelTasksetDerivation);\n if (previous && source.taskset.id !== identity(previous.owner, previous.root)) throw new Error(\"Derived Taskset identity differs from its ownership lineage.\");\n const owned = previous && same(previous.owner, owner);\n const root = owned ? previous.root : learningRef(source.taskset);\n const id = owned ? source.taskset.id : identity(owner, root);\n const revision = owned ? source.taskset.revision + 1 : 1;\n const rewardBinding = RewardBindingSchema.parse(input.rewardBinding);\n const rewards = input.rewards.map(reward => RewardReleaseSchema.parse(reward));\n const graders = compileBoundGraders(rewardBinding, rewards);\n if (rewardBinding.recipeRef) throw new Error(\"Resolve the Reward recipe into one standalone binding before deriving a Taskset.\");\n const policy = { ...source.taskset.policy, hiddenGraderRefs: graders.filter(grader => grader.privileged).map(grader => grader.id) };\n const previousResources = source.executionResources ?? source.execution;\n const environment = previousResources?.environment ?? createEnvironmentRelease({\n schemaVersion: \"openpond.environmentRelease.v1\", id: `${id}-environment`, revision: 1,\n contract: source.taskset.environment, actionSchemaRef: null, observationSchemaRef: null, stateSchemaRef: null,\n artifactCollection: { maxArtifacts: 100_000, maxTotalBytes: 250_000_000 }, adapterConformanceHashes: {}, metadata: {},\n });\n const verifierSet = createVerifierSetRelease({\n schemaVersion: \"openpond.verifierSetRelease.v1\", id: `${id}-verifiers`, revision, graders,\n isolation: previousResources?.verifierSet.isolation ?? { processBoundary: \"isolated_process\", networkPolicy: \"none\", defaultTimeoutMs: Math.min(source.taskset.environment.defaultTimeoutMs, 300_000) },\n calibrationReceiptRefs: [], metadata: previousResources ? { sourceVerifierSet: learningRef(previousResources.verifierSet) } : {},\n });\n const executionResources = { environment, verifierSet };\n const execution = source.execution ? { ...source.execution, verifierSet } : undefined;\n const { contentHash: _taskHash, ...taskContent } = source.taskset;\n const { contentHash: _definitionHash, ...definitionContent } = source.taskDefinition;\n const taskExecution = { ...definitionContent.execution, policy, environmentRelease: { id: environment.id, contentHash: environment.contentHash }, verifierSetRelease: { id: verifierSet.id, contentHash: verifierSet.contentHash } };\n const taskDefinition = TaskDefinitionSchema.parse(sealLearningContent({ ...definitionContent, id: `${id}-definition`, revision, rewardBinding: learningRef(rewardBinding), execution: taskExecution }));\n const authoring = source.taskset.metadata.starterAuthoring;\n const graderFixtures = authoring && typeof authoring === \"object\" && !Array.isArray(authoring) && \"graderFixtures\" in authoring ? authoring.graderFixtures : undefined;\n // Keep provenance through exact lineage. Source package qualifications and\n // privacy attestations describe different bytes and must not be copied.\n const taskset = TasksetReleaseSchema.parse(sealLearningContent({\n ...taskContent, ...taskExecution, id, revision, graders,\n metadata: {\n starter: { taskDefinition: learningRef(taskDefinition), rewardBinding: learningRef(rewardBinding) },\n rewardExecution: { binding: rewardBinding, rewards },\n ...(graderFixtures === undefined ? {} : { starterAuthoring: { graderFixtures } }),\n modelTasksetDerivation: { schemaVersion: \"openpond.modelTasksetDerivation.v1\", owner, root, parent: learningRef(source.taskset) },\n },\n }));\n return validateModelTasksetPackage({ taskset, taskDefinition, rewardBinding, rewards, assets: input.assets, executionResources, ...(execution ? { execution } : {}) });\n}\n\nexport function validateModelTasksetPackage(value: unknown): ModelTasksetPackage {\n const result = ModelTasksetPackageSchema.parse(value);\n const { taskset, taskDefinition, rewardBinding, rewards, assets, execution } = result;\n for (const resource of [taskset, taskDefinition, rewardBinding, ...rewards, ...assets]) assertLearningContentHash(resource);\n assertTasksetRelease(taskset);\n if (rewardBinding.recipeRef) throw new Error(\"Resolve the Reward recipe into one standalone binding before deriving a Taskset.\");\n if (!sameLearningRef(taskDefinition.rewardBinding, learningRef(rewardBinding))) throw new Error(\"Taskset definition differs from its Reward binding.\");\n const { policy, environment, environmentRelease, tools, capabilities, verifierSetRelease } = taskset;\n if (!same(taskDefinition.execution, { policy, environment, ...(environmentRelease ? { environmentRelease } : {}), tools, capabilities, ...(verifierSetRelease ? { verifierSetRelease } : {}) })) throw new Error(\"Taskset definition differs from its execution resources.\");\n if (!same(taskset.graders, compileBoundGraders(rewardBinding, rewards))) throw new Error(\"Taskset graders differ from its Reward binding.\");\n if (taskset.metadata.starter !== undefined) {\n const metadata = z.object({ taskDefinition: ModelProjectVersionedRefSchema, rewardBinding: ModelProjectVersionedRefSchema }).passthrough().parse(taskset.metadata.starter);\n if (!sameLearningRef(metadata.taskDefinition, learningRef(taskDefinition)) || !sameLearningRef(metadata.rewardBinding, learningRef(rewardBinding))) throw new Error(\"Taskset metadata differs from its immutable grading resources.\");\n }\n if (taskset.metadata.rewardExecution !== undefined && !same(taskset.metadata.rewardExecution, { binding: rewardBinding, rewards })) throw new Error(\"Taskset embedded Rewards differ from its immutable grading resources.\");\n if (taskset.metadata.rewardBinding !== undefined && !sameLearningRef(ModelProjectVersionedRefSchema.parse(taskset.metadata.rewardBinding), learningRef(rewardBinding))) throw new Error(\"Taskset Reward reference differs from its immutable grading resources.\");\n const resources = result.executionResources ?? execution;\n if (taskset.environmentRelease && !resources) throw new Error(\"Deriving a Taskset requires its pinned execution resources.\");\n if (resources && (!verifyEnvironmentRelease(resources.environment) || !verifyVerifierSetRelease(resources.verifierSet) ||\n !same(taskset.environmentRelease, { id: resources.environment.id, contentHash: resources.environment.contentHash }) ||\n !same(taskset.verifierSetRelease, { id: resources.verifierSet.id, contentHash: resources.verifierSet.contentHash }) ||\n !same(taskset.environment, resources.environment.contract) || !same(taskset.graders, resources.verifierSet.graders))) throw new Error(\"Taskset differs from its pinned execution resources.\");\n validateModelStarterExecution(execution, taskset, assets);\n if (new Set(assets.map(asset => asset.id)).size !== assets.length) throw new Error(\"Taskset asset identities must be unique.\");\n for (const asset of assets) verifyLearningTextAsset(asset, asset.asset);\n for (const reference of resources ? [resources.environment.actionSchemaRef, resources.environment.observationSchemaRef, resources.environment.stateSchemaRef] : []) {\n if (!reference) continue;\n const asset = assets.find(asset => asset.id === reference.id);\n if (!asset) throw new Error(`Taskset environment asset is missing: ${reference.id}.`);\n verifyLearningTextAsset(asset, reference);\n }\n for (const task of taskset.tasks) {\n if (taskDefinition.requiredOutputs && !same(task.requiredOutputs, taskDefinition.requiredOutputs)) throw new Error(`Taskset outputs differ from its reviewed definition: ${task.id}.`);\n if (task.policyVisibleContext.instructions !== taskDefinition.instructions || !validateTaskValue(taskDefinition.inputSchema, task.input).valid ||\n (task.expectedOutput !== null && !validateTaskValue(taskDefinition.outputSchema, task.expectedOutput).valid)) throw new Error(`Taskset task differs from its declared format: ${task.id}.`);\n if (task.privilegedContextRef && !assets.some(asset => asset.id === task.privilegedContextRef && asset.asset.visibility === \"host_private\")) throw new Error(`Taskset private context is missing: ${task.id}.`);\n }\n for (const reward of rewards) {\n const implementation = reward.implementation;\n const references = [...reward.assets, ...(\"verifierRef\" in implementation ? [implementation.verifierRef] : []), ...(\"rubricRef\" in implementation ? [implementation.rubricRef] : []), ...(\"inputContract\" in implementation ? [implementation.inputContract] : [])];\n for (const reference of references) {\n const asset = assets.find(asset => asset.id === reference.id);\n if (!asset || reference.visibility === \"policy\") throw new Error(`Taskset Reward requires its private asset: ${reference.id}.`);\n verifyLearningTextAsset(asset, reference);\n }\n }\n return result;\n}\n", "import { z } from \"zod\";\nimport { contentHash, sha256 } from \"@openpond/harness\";\nimport { TaskBatchSchema, TaskEvidenceSchema, TaskAdmissionDecisionSchema, LearningSourceSchema, LearningTextAssetSchema,\n assertLearningContentHash, compileTaskBatch, learningRef, sameLearningRef, taskBatchPackageMetadata, verifyLearningTextAsset } from \"@openpond/evals/learning\";\nimport type { TasksetRelease } from \"@openpond/evals/tasksets\";\nimport { canonicalJson } from \"./training.js\";\n\n/** Review snapshots travel with their exact batch; importing them is not a\n * new local admission or permission to train. */\nexport const TasksetPackageLearningResourcesSchema = z.object({\n batch: TaskBatchSchema,\n evidence: z.array(TaskEvidenceSchema).min(1).max(10_000),\n decisions: z.array(TaskAdmissionDecisionSchema).min(1).max(10_000),\n sources: z.array(LearningSourceSchema).min(1).max(10_000),\n assets: z.array(LearningTextAssetSchema).max(1_000),\n}).strict();\nexport type TasksetPackageLearningResources = z.infer<typeof TasksetPackageLearningResourcesSchema>;\n\nexport function learningPackageContextFiles(resources: TasksetPackageLearningResources) {\n return resources.evidence.filter(evidence => evidence.submission.evaluatorContext !== null).map(evidence => {\n const text = canonicalJson(evidence.submission.evaluatorContext);\n const bytes = new TextEncoder().encode(text);\n return { asset: { id: `task-evidence:${evidence.contentHash}`, path: `learning/context/${evidence.contentHash}.json`,\n contentHash: sha256(bytes), sizeBytes: bytes.byteLength, mediaType: \"application/json\", visibility: \"host_private\" as const },\n base64: btoa(Array.from(bytes, byte => String.fromCharCode(byte)).join(\"\")) };\n });\n}\n\nexport function validateTasksetLearningResources(taskset: TasksetRelease, input: unknown) {\n const resources = TasksetPackageLearningResourcesSchema.parse(input);\n const metadata = taskBatchPackageMetadata(taskset);\n if (!sameLearningRef(learningRef(resources.batch), metadata.batch)) throw new Error(\"Taskset learning batch differs from its admission metadata.\");\n for (const collection of [resources.evidence, resources.decisions, resources.sources, resources.assets]) {\n const identities = new Set<string>();\n for (const resource of collection) {\n assertLearningContentHash(resource);\n const key = `${resource.id}:${resource.revision}`;\n if (identities.has(key)) throw new Error(\"Taskset learning resource identities must be unique.\");\n identities.add(key);\n }\n }\n if (resources.evidence.length !== resources.batch.examples.length || resources.decisions.length !== resources.batch.examples.length) throw new Error(\"Taskset learning snapshots must match the admitted batch inventory.\");\n for (const evidence of resources.evidence) {\n const source = resources.sources.find(source => sameLearningRef(learningRef(source), evidence.source));\n if (!source || !sameLearningRef(source.taskDefinition, learningRef(metadata.definition))) throw new Error(\"Taskset evidence source differs from its task definition.\");\n }\n if (resources.sources.some(source => !resources.evidence.some(evidence => sameLearningRef(evidence.source, learningRef(source))))) throw new Error(\"Taskset package includes an unrelated learning source.\");\n const rewardAssets = metadata.rewards.flatMap(reward => [...reward.assets,\n ...(reward.implementation.kind === \"custom_verifier\" ? [reward.implementation.verifierRef]\n : reward.implementation.kind === \"model_judge\" || reward.implementation.kind === \"human\" ? [reward.implementation.rubricRef] : []),\n ...(\"inputContract\" in reward.implementation ? [reward.implementation.inputContract] : []),\n ]);\n for (const ref of rewardAssets) {\n const asset = resources.assets.find(asset => asset.id === ref.id);\n if (!asset) throw new Error(\"Taskset learning Reward asset is missing.\");\n verifyLearningTextAsset(asset, ref);\n }\n if (resources.assets.some(asset => !rewardAssets.some(ref => ref.id === asset.id))) throw new Error(\"Taskset package includes an unrelated learning asset.\");\n const compiled = compileTaskBatch({ batch: resources.batch, definition: metadata.definition, binding: metadata.binding,\n rewards: metadata.rewards, evidence: resources.evidence, decisions: resources.decisions });\n const compiledMetadata = taskBatchPackageMetadata(compiled);\n if (contentHash(compiledMetadata) !== contentHash(metadata)) throw new Error(\"Taskset admission metadata differs from its reviewed snapshots.\");\n const execution = (release: TasksetRelease) => ({ policy: release.policy, environment: release.environment, tools: release.tools });\n if (contentHash(execution(compiled)) !== contentHash(execution(taskset))) throw new Error(\"Taskset execution differs from its reviewed task definition.\");\n const taskContent = (task: TasksetRelease[\"tasks\"][number]) => ({ id: task.id, clusterKey: task.clusterKey, split: task.split,\n input: task.input, expectedOutput: task.expectedOutput, policyVisibleContext: task.policyVisibleContext,\n privilegedContextRef: task.privilegedContextRef, artifactRefs: task.artifactRefs, requiredOutputs: task.requiredOutputs ?? [], tags: task.tags });\n if (contentHash(compiled.tasks.map(taskContent)) !== contentHash(taskset.tasks.map(taskContent))) throw new Error(\"Taskset rows differ from their reviewed evidence.\");\n return resources;\n}\n", "import { z } from \"zod\";\nimport { ImmutableAssetRefSchema, sha256 } from \"@openpond/harness\";\n\n/** The limit covers the entire decoded JSON envelope, including base64. */\nexport const MAX_TASKSET_PACKAGE_BYTES = 64 * 1024 * 1024;\nexport const TasksetPackageFileSchema = z.object({\n asset: ImmutableAssetRefSchema,\n base64: z.string().max(Math.ceil(MAX_TASKSET_PACKAGE_BYTES / 3) * 4),\n}).strict();\nexport type TasksetPackageFile = z.infer<typeof TasksetPackageFileSchema>;\n\nexport function decodeTasksetPackageFile(value: TasksetPackageFile): Uint8Array {\n const file = TasksetPackageFileSchema.parse(value);\n const raw = atob(file.base64);\n if (btoa(raw) !== file.base64) throw new Error(`Taskset asset ${file.asset.id} has noncanonical base64.`);\n const bytes = Uint8Array.from(raw, character => character.charCodeAt(0));\n if (bytes.byteLength !== file.asset.sizeBytes || sha256(bytes) !== file.asset.contentHash) throw new Error(`Taskset asset ${file.asset.id} differs from its immutable bytes.`);\n return bytes;\n}\n", "import type { TasksetRelease } from \"@openpond/evals/tasksets\";\nimport { LearningTextAssetSchema, sealLearningContent, type LearningTextAsset } from \"@openpond/evals/learning\";\nimport { createModelStarterExecutionAsset, modelStarterExecutionAssetId, ModelStarterExecutionSchema, validateModelStarterExecution, type ModelStarterExecution } from \"./model-starter-execution.js\";\nimport { decodeTasksetPackageFile, type TasksetPackageFile } from \"./taskset-package-files.js\";\n\n/** Resolve the same private execution graph for bound and ordinary packages.\n * Package admission separately validates the enclosing release and file graph. */\nexport function resolveTasksetPackageExecution(input: {\n taskset: TasksetRelease;\n files: TasksetPackageFile[];\n modelResources?: { execution?: ModelStarterExecution };\n}): { execution: ModelStarterExecution; assets: LearningTextAsset[] } | null {\n if (input.taskset.environment.entrypoint !== \"openpond.javascript-environment.v1\") return null;\n const byId = new Map(input.files.map(file => [file.asset.id, file]));\n const read = (id: string): LearningTextAsset => {\n const file = byId.get(id);\n if (!file) throw new Error(`Taskset environment asset is missing: ${id}.`);\n if (file.asset.sizeBytes > 524_288) throw new Error(\"Taskset environment source exceeds the authored asset limit.\");\n const text = new TextDecoder(\"utf-8\", { fatal: true }).decode(decodeTasksetPackageFile(file));\n return LearningTextAssetSchema.parse(sealLearningContent({ schemaVersion: \"openpond.learningTextAsset.v1\", id, revision: 1, asset: file.asset, text }));\n };\n let execution: ModelStarterExecution;\n if (input.modelResources) {\n if (!input.modelResources.execution) throw new Error(\"Bound Taskset JavaScript execution resources are missing.\");\n execution = ModelStarterExecutionSchema.parse(input.modelResources.execution);\n } else {\n const declaration = read(modelStarterExecutionAssetId(input.taskset));\n if (declaration.asset.visibility !== \"host_private\" || declaration.asset.mediaType !== \"application/json\" || declaration.asset.path !== \"environment/execution.json\") throw new Error(\"Taskset execution declaration must be private JSON at environment/execution.json.\");\n execution = ModelStarterExecutionSchema.parse(JSON.parse(declaration.text));\n }\n const ids = new Set([execution.javascript.module.id,\n ...[execution.environment.actionSchemaRef, execution.environment.observationSchemaRef, execution.environment.stateSchemaRef].flatMap(ref => ref ? [ref.id] : []),\n ...input.taskset.tasks.flatMap(task => task.privilegedContextRef ? [task.privilegedContextRef] : []),\n ]);\n const assets = [...ids].map(read);\n validateModelStarterExecution(execution, input.taskset, assets);\n return { execution, assets };\n}\n\n/** Regenerate the declaration when publication reseals its execution releases. */\nexport function createTasksetPackageExecutionFile(execution: ModelStarterExecution): TasksetPackageFile {\n const asset = createModelStarterExecutionAsset(execution);\n const bytes = new TextEncoder().encode(asset.text);\n let raw = \"\";\n for (const byte of bytes) raw += String.fromCharCode(byte);\n return { asset: asset.asset, base64: btoa(raw) };\n}\n", "import { z } from \"zod\";\nimport { contentHash, type ImmutableAssetRef } from \"@openpond/harness\";\nimport { EnvironmentReleaseSchema, VerifierSetReleaseSchema, verifyEnvironmentRelease, verifyVerifierSetRelease } from \"@openpond/evals\";\nimport { assertTasksetRelease, TasksetReleaseSchema } from \"@openpond/evals/tasksets\";\nimport { assertBoundedTaskJson } from \"@openpond/evals/task-schema\";\nimport { ModelTasksetPackageSchema, validateModelTasksetPackage } from \"./model-taskset-derivation.js\";\nimport { taskBatchPackageMetadata } from \"@openpond/evals/learning\";\nimport { TasksetPackageLearningResourcesSchema, learningPackageContextFiles, validateTasksetLearningResources } from \"./taskset-package-learning.js\";\nimport { assertModelTasksetAuthoring } from \"./model-taskset-authoring-lineage.js\";\nimport { resolveTasksetPackageExecution } from \"./taskset-package-execution.js\";\nimport { MAX_TASKSET_PACKAGE_BYTES, TasksetPackageFileSchema, decodeTasksetPackageFile } from \"./taskset-package-files.js\";\nexport { MAX_TASKSET_PACKAGE_BYTES, TasksetPackageFileSchema, decodeTasksetPackageFile } from \"./taskset-package-files.js\";\nexport { resolveTasksetPackageExecution, createTasksetPackageExecutionFile } from \"./taskset-package-execution.js\";\n\nconst BoundModelResourcesSchema = ModelTasksetPackageSchema.omit({ taskset: true, executionResources: true });\nexport const TasksetPackageContentSchema = z.object({\n schemaVersion: z.literal(\"openpond.tasksetPackage.v1\"),\n taskset: TasksetReleaseSchema,\n environment: EnvironmentReleaseSchema,\n verifierSet: VerifierSetReleaseSchema,\n files: z.array(TasksetPackageFileSchema).max(10_000),\n modelResources: BoundModelResourcesSchema.optional(),\n learningResources: TasksetPackageLearningResourcesSchema.optional(),\n}).strict();\nexport const TasksetPackageSchema = TasksetPackageContentSchema.extend({ contentHash: z.string().regex(/^[a-f0-9]{64}$/) }).strict();\nexport type TasksetPackage = z.infer<typeof TasksetPackageSchema>;\n\n/** The selected binding belongs to the package's declared authoring graph. */\nexport function tasksetPackageRewardBinding(value: TasksetPackage) {\n return value.learningResources ? taskBatchPackageMetadata(value.taskset).binding : value.modelResources?.rewardBinding ?? null;\n}\n\n/** Instructions follow the admitted authoring graph. An ordinary package with\n * no instructions declares an empty prompt, never its display name. */\nexport function resolveTasksetPackageInstructions(value: Pick<TasksetPackage, \"taskset\" | \"modelResources\" | \"learningResources\">): string {\n if (value.learningResources) return taskBatchPackageMetadata(value.taskset).definition.instructions;\n if (value.modelResources) return value.modelResources.taskDefinition.instructions;\n const authoring = z.object({ instructions: z.string().max(20_000).optional() }).passthrough()\n .parse(value.taskset.metadata.ordinaryAuthoring ?? {});\n return authoring.instructions ?? \"\";\n}\n\n/** Admission verifies the complete declared dependency graph, not readiness or\n * permission to execute it. Hosts separately authorize the workspace/project. */\nexport function validateTasksetPackage(value: unknown): TasksetPackage {\n assertBoundedTaskJson(value, MAX_TASKSET_PACKAGE_BYTES);\n const result = TasksetPackageSchema.parse(value);\n const { contentHash: hash, ...content } = result;\n if (contentHash(content) !== hash) throw new Error(\"Taskset package content hash differs from its bytes.\");\n const { taskset, environment, verifierSet } = result;\n assertTasksetRelease(taskset);\n const authoring = assertModelTasksetAuthoring(taskset);\n if (authoring && (result.modelResources || result.learningResources)) throw new Error(\"Taskset package cannot declare competing authoring graphs.\");\n if (!verifyEnvironmentRelease(environment) || !verifyVerifierSetRelease(verifierSet)\n || !same(taskset.environmentRelease, { id: environment.id, contentHash: environment.contentHash })\n || !same(taskset.verifierSetRelease, { id: verifierSet.id, contentHash: verifierSet.contentHash })\n || !same(taskset.environment, environment.contract) || !same(taskset.graders, verifierSet.graders)) {\n throw new Error(\"Taskset package execution releases do not match its Taskset.\");\n }\n const files = new Map<string, z.infer<typeof TasksetPackageFileSchema>>();\n for (const file of result.files) {\n if (files.has(file.asset.id)) throw new Error(`Duplicate Taskset asset identity: ${file.asset.id}.`);\n decodeTasksetPackageFile(file);\n files.set(file.asset.id, file);\n }\n function requireAsset(ref: ImmutableAssetRef) {\n const file = files.get(ref.id);\n if (!file || !same(file.asset, ref)) throw new Error(`Taskset package asset is missing or mismatched: ${ref.id}.`);\n }\n for (const task of taskset.tasks) {\n for (const asset of task.artifactRefs) requireAsset(asset);\n for (const output of task.requiredOutputs ?? []) if (output.schemaRef) requireAsset(output.schemaRef);\n if (task.privilegedContextRef && files.get(task.privilegedContextRef)?.asset.visibility !== \"host_private\") {\n throw new Error(`Taskset package private context is missing: ${task.id}.`);\n }\n }\n for (const ref of [environment.actionSchemaRef, environment.observationSchemaRef, environment.stateSchemaRef]) if (ref) requireAsset(ref);\n for (const grader of taskset.graders) {\n const ref = \"verifierRef\" in grader ? grader.verifierRef : \"rubricRef\" in grader ? grader.rubricRef : null;\n if (ref) {\n requireAsset(ref);\n if (ref.visibility === \"policy\") throw new Error(`Taskset grader asset must be private: ${ref.id}.`);\n }\n }\n if (taskset.metrics?.customAggregator) {\n const aggregator = taskset.metrics.customAggregator;\n const modules = result.files.filter(file => file.asset.path === aggregator.module);\n if (modules.length !== 1 || modules[0]!.asset.contentHash !== aggregator.contentHash || modules[0]!.asset.sizeBytes > 524_288 || modules[0]!.asset.visibility === \"policy\") {\n throw new Error(\"Taskset metric module is missing or mismatched, public, or exceeds the source limit.\");\n }\n }\n for (const declarations of [taskset.metadata.environmentResources, environment.metadata.resources]) {\n if (declarations === undefined) continue;\n for (const resource of z.array(z.object({ path: z.string().min(1) }).passthrough()).parse(declarations)) {\n if (!result.files.some(file => file.asset.path === resource.path)) throw new Error(`Taskset environment resource is missing: ${resource.path}.`);\n }\n }\n if (result.learningResources) {\n if (result.modelResources) throw new Error(\"Taskset package cannot declare competing authoring graphs.\");\n const learning = validateTasksetLearningResources(taskset, result.learningResources);\n for (const expected of learningPackageContextFiles(learning)) {\n if (!same(files.get(expected.asset.id), expected)) throw new Error(\"Taskset private context differs from its reviewed evidence.\");\n }\n for (const asset of learning.assets) requireAsset(asset.asset);\n } else if (result.modelResources) {\n const model = validateModelTasksetPackage({ ...result.modelResources, taskset, executionResources: { environment, verifierSet } });\n for (const asset of model.assets) requireAsset(asset.asset);\n } else if ([\"starter\", \"rewardBinding\", \"rewardExecution\", \"modelTasksetDerivation\", \"learning\"].some(key => taskset.metadata[key] !== undefined)) {\n throw new Error(\"Bound Taskset publication requires its complete model resources.\");\n }\n resolveTasksetPackageExecution(result);\n resolveTasksetPackageInstructions(result);\n return result;\n}\n\nexport function createTasksetPackage(value: z.input<typeof TasksetPackageContentSchema>): TasksetPackage {\n assertBoundedTaskJson(value, MAX_TASKSET_PACKAGE_BYTES);\n const content = TasksetPackageContentSchema.parse(value);\n return validateTasksetPackage({ ...content, contentHash: contentHash(content) });\n}\n\nfunction same(left: unknown, right: unknown): boolean {\n return contentHash({ value: left }) === contentHash({ value: right });\n}\n", "import { contentHash } from \"@openpond/harness\";\nimport { sameLearningRef } from \"@openpond/evals/learning\";\nimport { ModelTasksetAuthoringSchema } from \"./model-taskset-authoring-contracts.js\";\n\nexport function modelAuthoredTasksetId(lineage: { owner: unknown; root: unknown }) {\n return `model-authored-taskset-${contentHash({ owner: lineage.owner, root: lineage.root })}`;\n}\n\n/** Ownership metadata must describe this exact immutable revision. */\nexport function assertModelTasksetAuthoring(taskset: { id: string; revision: number; metadata: Record<string, unknown> }) {\n if (taskset.metadata.modelTasksetAuthoring === undefined) return null;\n const lineage = ModelTasksetAuthoringSchema.parse(taskset.metadata.modelTasksetAuthoring);\n if (taskset.id !== modelAuthoredTasksetId(lineage)\n || (taskset.revision === 1 ? !sameLearningRef(lineage.parent, lineage.root)\n : lineage.parent.id !== taskset.id || lineage.parent.revision !== taskset.revision - 1)) {\n throw new Error(\"Authored Taskset revision differs from its ownership lineage.\");\n }\n return lineage;\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAClB,SAAS,0BAA0B,gCAAgC;AACnE,SAAS,uCAAuC,6CAA6C;AAC7F,SAAS,yBAAyB,aAAa,qBAAqB,+BAAuD;AAC3H,SAAS,6BAA6B;AAKtC,IAAM,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB;AAC7C,IAAM,uCAAwD,uBAAM,EAAE,OAAO;AAAA,EAClF,eAAe,EAAE,QAAQ,0CAA0C;AAAA,EAA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AAM,OAAQ,cAAa,MAAM,KAAK;AAAA,EAC5D,WAAW,CAAC,WAAW,iBAAiB,mBAAmB,0BAA0B,UAAU,EAAE,KAAK,SAAO,QAAQ,SAAS,GAAG,MAAM,MAAS,GAAG;AACjJ,UAAM,IAAI,MAAM,kEAAkE;AAAA,EACpF;AACA,iCAA+B,MAAM;AACrC,oCAAkC,MAAM;AACxC,SAAO;AACT;AAEO,SAAS,qBAAqB,OAAoE;AACvG,EAAAJ,uBAAsB,OAAO,yBAAyB;AACtD,QAAM,UAAU,4BAA4B,MAAM,KAAK;AACvD,SAAO,uBAAuB,EAAE,GAAG,SAAS,aAAa,YAAY,OAAO,EAAE,CAAC;AACjF;AAEA,SAASI,MAAK,MAAe,OAAyB;AACpD,SAAO,YAAY,EAAE,OAAO,KAAK,CAAC,MAAM,YAAY,EAAE,OAAO,MAAM,CAAC;AACtE;",
|
|
6
|
-
"names": ["contentHash", "asset", "z", "EnvironmentReleaseSchema", "VerifierSetReleaseSchema", "createLearningTextAsset", "sealLearningContent", "verifyLearningTextAsset", "z", "EnvironmentReleaseSchema", "VerifierSetReleaseSchema", "sealLearningContent", "createLearningTextAsset", "verifyLearningTextAsset", "z", "verifyEnvironmentRelease", "verifyVerifierSetRelease", "learningRef", "sealLearningContent", "verifyLearningTextAsset", "z", "sealLearningContent", "learningRef", "verifyEnvironmentRelease", "verifyVerifierSetRelease", "verifyLearningTextAsset", "asset", "z", "LearningTextAssetSchema", "assertLearningContentHash", "learningRef", "sameLearningRef", "verifyLearningTextAsset", "z", "LearningTextAssetSchema", "sameLearningRef", "learningRef", "assertLearningContentHash", "source", "asset", "verifyLearningTextAsset", "z", "z", "LearningTextAssetSchema", "sealLearningContent", "LearningTextAssetSchema", "sealLearningContent", "z", "EnvironmentReleaseSchema", "VerifierSetReleaseSchema", "verifyEnvironmentRelease", "verifyVerifierSetRelease", "assertTasksetRelease", "TasksetReleaseSchema", "assertBoundedTaskJson", "taskBatchPackageMetadata", "sameLearningRef", "sameLearningRef", "z", "TasksetReleaseSchema", "EnvironmentReleaseSchema", "VerifierSetReleaseSchema", "taskBatchPackageMetadata", "assertBoundedTaskJson", "assertTasksetRelease", "verifyEnvironmentRelease", "verifyVerifierSetRelease", "same"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/model-taskset-authoring-contracts.ts"],
|
|
4
|
-
"sourcesContent": ["import { z } from \"zod\";\nimport { LearningRevisionRefSchema } from \"@openpond/evals/learning\";\n\nconst IdSchema = LearningRevisionRefSchema.shape.id;\nconst HashSchema = z.string().regex(/^[a-f0-9]{64}$/);\nexport const ModelTasksetAuthoringOwnerSchema = z.object({ scopeId: IdSchema, modelId: IdSchema }).strict();\n\n/** Ordinary authoring preserves its own lineage without inventing a Reward\n * binding or replacing an admitted learning graph. Hosts authorize the owner. */\nexport const ModelTasksetAuthoringSchema = z.object({\n schemaVersion: z.literal(\"openpond.modelTasksetAuthoring.v1\"),\n owner: ModelTasksetAuthoringOwnerSchema,\n root: LearningRevisionRefSchema,\n parent: LearningRevisionRefSchema,\n}).strict();\n\nexport const ModelTasksetDraftRequestSchema = z.object({\n schemaVersion: z.literal(\"openpond.modelTasksetDraftRequest.v1\"),\n operationId: IdSchema,\n modelId: IdSchema,\n expectedModelRevision: z.number().int().positive(),\n sourcePackageHash: HashSchema,\n}).strict();\nexport type ModelTasksetDraftRequest = z.infer<typeof ModelTasksetDraftRequestSchema>;\n\n/** Persist this preparation before materializing the editable workspace. */\nexport const ModelTasksetDraftPreparationSchema = z.object({\n schemaVersion: z.literal(\"openpond.modelTasksetDraftPreparation.v1\"),\n draftId: IdSchema,\n requestHash: HashSchema,\n sourcePackageHash: HashSchema,\n sourceTasksetRef: LearningRevisionRefSchema,\n tasksetId: IdSchema,\n tasksetRevision: z.number().int().positive(),\n lineage: ModelTasksetAuthoringSchema,\n}).strict();\nexport type ModelTasksetDraftPreparation = z.infer<typeof ModelTasksetDraftPreparationSchema>;\n\nexport const TasksetDraftFilePathSchema = z.string().min(1).max(1024).refine(value =>\n !value.includes(\"\\\\\") && !value.includes(\":\") && !value.includes(\"\\0\") && !value.startsWith(\"/\")\n && !value.split(\"/\").some(part => !part || part === \".\" || part === \"..\" || part.startsWith(\".env\")), \"Use a relative Taskset file path without environment files.\");\nexport const TasksetDraftFileInfoSchema = z.object({\n path: TasksetDraftFilePathSchema,\n sizeBytes: z.number().int().nonnegative(),\n writable: z.boolean(),\n}).strict();\nexport const TasksetDraftFileContentSchema = z.object({ encoding: z.enum([\"utf8\", \"base64\"]), data: z.string().max(8_000_000) }).strict();\nexport const TasksetDraftFileSchema = TasksetDraftFileInfoSchema.extend({ contentHash: HashSchema, content: TasksetDraftFileContentSchema }).strict();\nexport const TasksetDraftFileMutationSchema = z.object({\n draftId: IdSchema,\n expectedDraftRevision: z.number().int().positive(),\n path: TasksetDraftFilePathSchema,\n expectedFileHash: HashSchema.nullable(),\n content: TasksetDraftFileContentSchema.nullable(),\n}).strict();\nexport type TasksetDraftFileInfo = z.infer<typeof TasksetDraftFileInfoSchema>;\nexport type TasksetDraftFile = z.infer<typeof TasksetDraftFileSchema>;\nexport type TasksetDraftFileMutation = z.infer<typeof TasksetDraftFileMutationSchema>;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,SAAS;AAClB,SAAS,iCAAiC;AAE1C,IAAM,WAAW,0BAA0B,MAAM;AACjD,IAAM,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB;AAC7C,IAAM,mCAAmC,EAAE,OAAO,EAAE,SAAS,UAAU,SAAS,SAAS,CAAC,EAAE,OAAO;AAInG,IAAM,8BAA8B,EAAE,OAAO;AAAA,EAClD,eAAe,EAAE,QAAQ,mCAAmC;AAAA,EAC5D,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,EAAE,OAAO;AAEH,IAAM,iCAAiC,EAAE,OAAO;AAAA,EACrD,eAAe,EAAE,QAA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