openpond-sdk 0.5.7 → 0.5.8
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/TRAINING_PROTOCOL.md +13 -0
- package/dist/training-bundle.js +162 -2
- package/dist/training-bundle.js.map +4 -4
- package/dist/types/packages/sdk/src/managed-training-preparation.d.ts +201 -0
- package/dist/types/packages/sdk/src/managed-training-preparation.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/model-projects.d.ts +16 -16
- package/dist/types/packages/sdk/src/taskset-draft-client.d.ts +2 -2
- package/dist/types/packages/sdk/src/taskset-package-client.d.ts +2 -2
- package/dist/types/packages/sdk/src/training-bundle.d.ts +3 -1
- package/dist/types/packages/sdk/src/training-bundle.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts +709 -0
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/training-privacy.d.ts +8 -0
- package/dist/types/packages/sdk/src/training-privacy.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -716,4 +716,713 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
716
716
|
content: string;
|
|
717
717
|
}[];
|
|
718
718
|
};
|
|
719
|
+
/** Shared admission-to-training preparation. No caller may claim a passed
|
|
720
|
+
* privacy scan without executing the same checks over the pinned evidence.
|
|
721
|
+
*/
|
|
722
|
+
export declare function prepareReviewedLearningBatch(input: Omit<Parameters<typeof materializeLearningBatchTaskset>[0], "source"> & {
|
|
723
|
+
admissionContext?: "explicit_local_batch_review" | "explicit_hosted_batch_review";
|
|
724
|
+
}): {
|
|
725
|
+
taskset: {
|
|
726
|
+
schemaVersion: "openpond.taskset.v1";
|
|
727
|
+
id: string;
|
|
728
|
+
revision: number;
|
|
729
|
+
profileId: string;
|
|
730
|
+
createImproveRunId: string | null;
|
|
731
|
+
name: string;
|
|
732
|
+
objective: string;
|
|
733
|
+
purpose: "benchmark" | "general";
|
|
734
|
+
benchmark: {
|
|
735
|
+
schemaVersion: "openpond.tasksetBenchmark.v1";
|
|
736
|
+
definitionId: string;
|
|
737
|
+
releaseId: string;
|
|
738
|
+
releaseHash: string;
|
|
739
|
+
managedReleasePath: string;
|
|
740
|
+
adaptationSplit: "train" | "validation" | "test" | "frozen_eval";
|
|
741
|
+
evaluationSplit: "train" | "validation" | "test" | "frozen_eval";
|
|
742
|
+
primaryMetric: "foreground_tokens" | "success_rate" | "latency_ms" | "cost_usd";
|
|
743
|
+
qualityGate: "none" | "non_regression" | "all_pass";
|
|
744
|
+
source: "builtin" | "imported";
|
|
745
|
+
metadata: Record<string, unknown>;
|
|
746
|
+
} | null;
|
|
747
|
+
preferenceComparison: {
|
|
748
|
+
schemaVersion: "openpond.tasksetPreferenceComparisonBinding.v1";
|
|
749
|
+
releaseId: string;
|
|
750
|
+
releaseHash: string;
|
|
751
|
+
publishedAt: string;
|
|
752
|
+
metadata: Record<string, unknown>;
|
|
753
|
+
} | null;
|
|
754
|
+
status: "failed" | "archived" | "ready" | "draft" | "blocked" | "awaiting_disclosure_approval" | "awaiting_materialization_approval" | "materializing" | "validating" | "needs_review" | "baselining";
|
|
755
|
+
sourceRefs: ({
|
|
756
|
+
id: string;
|
|
757
|
+
profileId: string;
|
|
758
|
+
title: string;
|
|
759
|
+
sourceHash: string;
|
|
760
|
+
occurredAt: string;
|
|
761
|
+
licensingStatus: "pending" | "review" | "approved" | "blocked";
|
|
762
|
+
secretScanStatus: "pending" | "passed" | "blocked";
|
|
763
|
+
piiScanStatus: "pending" | "review" | "passed" | "blocked";
|
|
764
|
+
metadata: Record<string, unknown>;
|
|
765
|
+
schemaVersion: "openpond.huggingFaceDatasetSource.v1";
|
|
766
|
+
kind: "huggingface";
|
|
767
|
+
repositoryId: string;
|
|
768
|
+
repositoryUrl: string;
|
|
769
|
+
revision: string;
|
|
770
|
+
configuration: string;
|
|
771
|
+
upstreamSplits: string[];
|
|
772
|
+
gated: boolean;
|
|
773
|
+
private: boolean;
|
|
774
|
+
declaredLicense: string | null;
|
|
775
|
+
sourceFileHashes: string[];
|
|
776
|
+
} | {
|
|
777
|
+
id: string;
|
|
778
|
+
profileId: string;
|
|
779
|
+
title: string;
|
|
780
|
+
sourceHash: string;
|
|
781
|
+
occurredAt: string;
|
|
782
|
+
licensingStatus: "pending" | "review" | "approved" | "blocked";
|
|
783
|
+
secretScanStatus: "pending" | "passed" | "blocked";
|
|
784
|
+
piiScanStatus: "pending" | "review" | "passed" | "blocked";
|
|
785
|
+
metadata: Record<string, unknown>;
|
|
786
|
+
schemaVersion: "openpond.uploadedFileDatasetSource.v1";
|
|
787
|
+
kind: "uploaded_file";
|
|
788
|
+
originalFileNames: string[];
|
|
789
|
+
mediaTypes: string[];
|
|
790
|
+
sourceFileHashes: string[];
|
|
791
|
+
totalBytes: number;
|
|
792
|
+
parserVersion: string;
|
|
793
|
+
} | {
|
|
794
|
+
id: string;
|
|
795
|
+
profileId: string;
|
|
796
|
+
title: string;
|
|
797
|
+
sourceHash: string;
|
|
798
|
+
occurredAt: string;
|
|
799
|
+
licensingStatus: "pending" | "review" | "approved" | "blocked";
|
|
800
|
+
secretScanStatus: "pending" | "passed" | "blocked";
|
|
801
|
+
piiScanStatus: "pending" | "review" | "passed" | "blocked";
|
|
802
|
+
metadata: Record<string, unknown>;
|
|
803
|
+
schemaVersion: "openpond.generatedDatasetSource.v1";
|
|
804
|
+
kind: "generated";
|
|
805
|
+
generatorId: string;
|
|
806
|
+
generatorVersion: string;
|
|
807
|
+
seed: number;
|
|
808
|
+
generatorHash: string;
|
|
809
|
+
} | {
|
|
810
|
+
id: string;
|
|
811
|
+
profileId: string;
|
|
812
|
+
title: string;
|
|
813
|
+
sourceHash: string;
|
|
814
|
+
occurredAt: string;
|
|
815
|
+
licensingStatus: "pending" | "review" | "approved" | "blocked";
|
|
816
|
+
secretScanStatus: "pending" | "passed" | "blocked";
|
|
817
|
+
piiScanStatus: "pending" | "review" | "passed" | "blocked";
|
|
818
|
+
metadata: Record<string, unknown>;
|
|
819
|
+
schemaVersion: "openpond.learningBatchDatasetSource.v1";
|
|
820
|
+
kind: "learning_batch";
|
|
821
|
+
batch: {
|
|
822
|
+
id: string;
|
|
823
|
+
revision: number;
|
|
824
|
+
contentHash: string;
|
|
825
|
+
};
|
|
826
|
+
taskDefinition: {
|
|
827
|
+
id: string;
|
|
828
|
+
revision: number;
|
|
829
|
+
contentHash: string;
|
|
830
|
+
};
|
|
831
|
+
admittedBy: string;
|
|
832
|
+
} | {
|
|
833
|
+
schemaVersion: "openpond.trainingSource.v1";
|
|
834
|
+
id: string;
|
|
835
|
+
profileId: string;
|
|
836
|
+
sessionId: string;
|
|
837
|
+
turnIds: string[];
|
|
838
|
+
workspaceId: string | null;
|
|
839
|
+
sourceHash: string;
|
|
840
|
+
clusterKey: string;
|
|
841
|
+
title: string;
|
|
842
|
+
occurredAt: string;
|
|
843
|
+
consent: {
|
|
844
|
+
status: "pending" | "granted" | "denied" | "revoked";
|
|
845
|
+
scope: "metadata_only" | "selected_turns" | "full_session";
|
|
846
|
+
grantedBy: string | null;
|
|
847
|
+
grantedAt: string | null;
|
|
848
|
+
purpose: "task_authoring_and_evaluation";
|
|
849
|
+
};
|
|
850
|
+
connectedAppIds: string[];
|
|
851
|
+
secretScanStatus: "pending" | "passed" | "blocked";
|
|
852
|
+
piiScanStatus: "pending" | "review" | "passed" | "blocked";
|
|
853
|
+
licensingStatus: "pending" | "review" | "approved" | "blocked";
|
|
854
|
+
metadata: Record<string, unknown>;
|
|
855
|
+
})[];
|
|
856
|
+
policy: {
|
|
857
|
+
policyVisibleFields: string[];
|
|
858
|
+
privilegedFields: string[];
|
|
859
|
+
hiddenGraderRefs: string[];
|
|
860
|
+
connectedAppScopes: string[];
|
|
861
|
+
};
|
|
862
|
+
environment: {
|
|
863
|
+
protocolVersion: "openpond.taskEnvironment.v1";
|
|
864
|
+
kind: "work" | "agent" | "chat" | "program" | "stateful_harness";
|
|
865
|
+
entrypoint: string;
|
|
866
|
+
stateful: boolean;
|
|
867
|
+
deterministicSeeds: boolean;
|
|
868
|
+
toolNames: string[];
|
|
869
|
+
lifecycle: ("cleanup" | "create" | "grade" | "reset" | "step")[];
|
|
870
|
+
defaultTimeoutMs: number;
|
|
871
|
+
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
872
|
+
metadata: Record<string, unknown>;
|
|
873
|
+
actionBindings?: {
|
|
874
|
+
schemaVersion: "openpond.harnessActionBinding.v1";
|
|
875
|
+
actionId: string;
|
|
876
|
+
modelToolName: string;
|
|
877
|
+
description: string;
|
|
878
|
+
inputSchema: Record<string, unknown>;
|
|
879
|
+
actionSchemaHash: string;
|
|
880
|
+
agentRelease: {
|
|
881
|
+
id: string;
|
|
882
|
+
contentHash: string;
|
|
883
|
+
};
|
|
884
|
+
implementationHash: string;
|
|
885
|
+
runtimeBindingId: string;
|
|
886
|
+
capabilityReceiptHash: string;
|
|
887
|
+
sideEffect: "read" | "write";
|
|
888
|
+
studentVisible: boolean;
|
|
889
|
+
timeoutMs: number;
|
|
890
|
+
episodeArgumentBindings: {
|
|
891
|
+
argument: string;
|
|
892
|
+
source: "case_id";
|
|
893
|
+
}[];
|
|
894
|
+
}[] | undefined;
|
|
895
|
+
resources?: {
|
|
896
|
+
id: string;
|
|
897
|
+
kind: "file" | "catalog" | "configuration" | "code_module";
|
|
898
|
+
path: string;
|
|
899
|
+
visibility: "privileged" | "policy_visible" | "policy_hidden";
|
|
900
|
+
required: boolean;
|
|
901
|
+
metadata: Record<string, unknown>;
|
|
902
|
+
mediaType?: string | null | undefined;
|
|
903
|
+
}[] | undefined;
|
|
904
|
+
};
|
|
905
|
+
capabilities: {
|
|
906
|
+
schemaVersion: "openpond.tasksetCapabilities.v1";
|
|
907
|
+
taskKind: "custom_program" | "chat" | "single_agent" | "multi_agent";
|
|
908
|
+
supportedSignals: ("label" | "reward" | "feedback" | "preference" | "demonstration" | "correction")[];
|
|
909
|
+
compatibleMethods: ("none" | "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo" | "retrieval")[];
|
|
910
|
+
rewardKinds: ("none" | "model_judge" | "human" | "exact" | "deterministic")[];
|
|
911
|
+
requiresTools: boolean;
|
|
912
|
+
requiresState: boolean;
|
|
913
|
+
requiresPrivilegedGrading: boolean;
|
|
914
|
+
environmentPlacements: ("local" | "remote" | "colocated" | "provider_native")[];
|
|
915
|
+
exportable: boolean;
|
|
916
|
+
portabilityBlockers: string[];
|
|
917
|
+
};
|
|
918
|
+
tasks: {
|
|
919
|
+
schemaVersion: "openpond.taskData.v1";
|
|
920
|
+
id: string;
|
|
921
|
+
clusterKey: string;
|
|
922
|
+
split: "train" | "validation" | "test" | "frozen_eval";
|
|
923
|
+
input: Record<string, unknown>;
|
|
924
|
+
expectedOutput: Record<string, unknown> | null;
|
|
925
|
+
policyVisibleContext: Record<string, unknown>;
|
|
926
|
+
privilegedContextRef: string | null;
|
|
927
|
+
sourceRefs: string[];
|
|
928
|
+
tags: string[];
|
|
929
|
+
metadata: Record<string, unknown>;
|
|
930
|
+
assets?: {
|
|
931
|
+
id: string;
|
|
932
|
+
sourceRefId: string;
|
|
933
|
+
artifactRef: string;
|
|
934
|
+
fileName: string;
|
|
935
|
+
mediaType: string;
|
|
936
|
+
sha256: string;
|
|
937
|
+
sizeBytes: number;
|
|
938
|
+
split: "train" | "validation" | "test" | "frozen_eval";
|
|
939
|
+
metadata: Record<string, unknown>;
|
|
940
|
+
}[] | undefined;
|
|
941
|
+
resourceRefs?: string[] | undefined;
|
|
942
|
+
requiredOutputs?: {
|
|
943
|
+
path: string;
|
|
944
|
+
mediaType: string;
|
|
945
|
+
metadata: Record<string, unknown>;
|
|
946
|
+
schemaRef?: string | null | undefined;
|
|
947
|
+
maxBytes?: number | undefined;
|
|
948
|
+
}[] | undefined;
|
|
949
|
+
}[];
|
|
950
|
+
graders: ({
|
|
951
|
+
id: string;
|
|
952
|
+
version: string;
|
|
953
|
+
label: string;
|
|
954
|
+
weight: number;
|
|
955
|
+
hardGate: boolean;
|
|
956
|
+
rewardEligible: boolean;
|
|
957
|
+
privileged: boolean;
|
|
958
|
+
metadata: Record<string, unknown>;
|
|
959
|
+
kind: "file" | "state" | "test" | "content" | "schema" | "runtime_event" | "diff";
|
|
960
|
+
config: Record<string, unknown>;
|
|
961
|
+
} | {
|
|
962
|
+
id: string;
|
|
963
|
+
version: string;
|
|
964
|
+
label: string;
|
|
965
|
+
weight: number;
|
|
966
|
+
hardGate: boolean;
|
|
967
|
+
rewardEligible: boolean;
|
|
968
|
+
privileged: boolean;
|
|
969
|
+
metadata: Record<string, unknown>;
|
|
970
|
+
kind: "model_judge";
|
|
971
|
+
rubric: string;
|
|
972
|
+
judge: {
|
|
973
|
+
providerId: "openpond" | "codex" | "anthropic" | "openai" | "xai" | "google" | "openrouter" | "deepseek" | "zai" | "moonshot" | "together" | "groq" | "custom-openai-compatible";
|
|
974
|
+
modelId: string;
|
|
975
|
+
};
|
|
976
|
+
calibrationFixtureRefs: string[];
|
|
977
|
+
calibrationStatus: "failed" | "pending" | "passed";
|
|
978
|
+
temperature: number;
|
|
979
|
+
} | {
|
|
980
|
+
id: string;
|
|
981
|
+
version: string;
|
|
982
|
+
label: string;
|
|
983
|
+
weight: number;
|
|
984
|
+
hardGate: boolean;
|
|
985
|
+
rewardEligible: boolean;
|
|
986
|
+
privileged: boolean;
|
|
987
|
+
metadata: Record<string, unknown>;
|
|
988
|
+
kind: "human";
|
|
989
|
+
rubric: string;
|
|
990
|
+
reviewerRole: string;
|
|
991
|
+
} | {
|
|
992
|
+
id: string;
|
|
993
|
+
version: string;
|
|
994
|
+
label: string;
|
|
995
|
+
weight: number;
|
|
996
|
+
hardGate: boolean;
|
|
997
|
+
rewardEligible: boolean;
|
|
998
|
+
privileged: boolean;
|
|
999
|
+
metadata: Record<string, unknown>;
|
|
1000
|
+
kind: "custom_verifier";
|
|
1001
|
+
module: string;
|
|
1002
|
+
exportName: string;
|
|
1003
|
+
timeoutMs: number;
|
|
1004
|
+
networkPolicy: "none";
|
|
1005
|
+
})[];
|
|
1006
|
+
graderFixtures: {
|
|
1007
|
+
id: string;
|
|
1008
|
+
taskId: string;
|
|
1009
|
+
label: "infrastructure_failure" | "positive" | "negative" | "boundary" | "adversarial" | "prompt_injection";
|
|
1010
|
+
output: Record<string, unknown>;
|
|
1011
|
+
infrastructureError: string | null;
|
|
1012
|
+
expectedPassed: boolean;
|
|
1013
|
+
expectedRewardEligible: boolean;
|
|
1014
|
+
metadata: Record<string, unknown>;
|
|
1015
|
+
}[];
|
|
1016
|
+
learningSignals: {
|
|
1017
|
+
demonstrations: {
|
|
1018
|
+
id: string;
|
|
1019
|
+
taskId: string | null;
|
|
1020
|
+
sourceRefs: string[];
|
|
1021
|
+
artifactRef: string;
|
|
1022
|
+
approved: boolean;
|
|
1023
|
+
confidence: number;
|
|
1024
|
+
metadata: Record<string, unknown>;
|
|
1025
|
+
kind: "demonstration";
|
|
1026
|
+
prompt: string | null;
|
|
1027
|
+
response: string | null;
|
|
1028
|
+
}[];
|
|
1029
|
+
preferences: {
|
|
1030
|
+
id: string;
|
|
1031
|
+
taskId: string | null;
|
|
1032
|
+
sourceRefs: string[];
|
|
1033
|
+
artifactRef: string;
|
|
1034
|
+
approved: boolean;
|
|
1035
|
+
confidence: number;
|
|
1036
|
+
metadata: Record<string, unknown>;
|
|
1037
|
+
kind: "preference";
|
|
1038
|
+
prompt: string;
|
|
1039
|
+
chosen: string;
|
|
1040
|
+
rejected: string;
|
|
1041
|
+
rationale: string | null;
|
|
1042
|
+
}[];
|
|
1043
|
+
corrections: {
|
|
1044
|
+
id: string;
|
|
1045
|
+
taskId: string | null;
|
|
1046
|
+
sourceRefs: string[];
|
|
1047
|
+
artifactRef: string;
|
|
1048
|
+
approved: boolean;
|
|
1049
|
+
confidence: number;
|
|
1050
|
+
metadata: Record<string, unknown>;
|
|
1051
|
+
kind: "correction";
|
|
1052
|
+
original: string;
|
|
1053
|
+
corrected: string;
|
|
1054
|
+
rationale: string | null;
|
|
1055
|
+
}[];
|
|
1056
|
+
feedback: {
|
|
1057
|
+
id: string;
|
|
1058
|
+
taskId: string | null;
|
|
1059
|
+
sourceRefs: string[];
|
|
1060
|
+
artifactRef: string;
|
|
1061
|
+
approved: boolean;
|
|
1062
|
+
confidence: number;
|
|
1063
|
+
metadata: Record<string, unknown>;
|
|
1064
|
+
kind: "feedback";
|
|
1065
|
+
feedback: string;
|
|
1066
|
+
polarity: "neutral" | "positive" | "negative" | "mixed";
|
|
1067
|
+
}[];
|
|
1068
|
+
rewards: {
|
|
1069
|
+
id: string;
|
|
1070
|
+
taskId: string | null;
|
|
1071
|
+
sourceRefs: string[];
|
|
1072
|
+
artifactRef: string;
|
|
1073
|
+
approved: boolean;
|
|
1074
|
+
confidence: number;
|
|
1075
|
+
metadata: Record<string, unknown>;
|
|
1076
|
+
kind: "reward";
|
|
1077
|
+
task: string;
|
|
1078
|
+
rules: {
|
|
1079
|
+
id: string;
|
|
1080
|
+
points: number;
|
|
1081
|
+
condition: string;
|
|
1082
|
+
}[];
|
|
1083
|
+
otherwisePoints: number;
|
|
1084
|
+
executable: boolean;
|
|
1085
|
+
}[];
|
|
1086
|
+
labels: {
|
|
1087
|
+
id: string;
|
|
1088
|
+
taskId: string | null;
|
|
1089
|
+
sourceRefs: string[];
|
|
1090
|
+
artifactRef: string;
|
|
1091
|
+
approved: boolean;
|
|
1092
|
+
confidence: number;
|
|
1093
|
+
metadata: Record<string, unknown>;
|
|
1094
|
+
kind: "label";
|
|
1095
|
+
labelKind: "rubric";
|
|
1096
|
+
task: string;
|
|
1097
|
+
criteria: {
|
|
1098
|
+
id: string;
|
|
1099
|
+
label: string;
|
|
1100
|
+
description: string;
|
|
1101
|
+
}[];
|
|
1102
|
+
calibrationExamples: {
|
|
1103
|
+
positive: string;
|
|
1104
|
+
negative: string;
|
|
1105
|
+
boundary: string;
|
|
1106
|
+
};
|
|
1107
|
+
}[];
|
|
1108
|
+
};
|
|
1109
|
+
authoringProvenance: {
|
|
1110
|
+
schemaVersion: "openpond.taskAuthoringProvenance.v1";
|
|
1111
|
+
model: {
|
|
1112
|
+
providerId: "openpond" | "codex" | "anthropic" | "openai" | "xai" | "google" | "openrouter" | "deepseek" | "zai" | "moonshot" | "together" | "groq" | "custom-openai-compatible";
|
|
1113
|
+
modelId: string;
|
|
1114
|
+
} | null;
|
|
1115
|
+
modelConfig: Record<string, unknown>;
|
|
1116
|
+
skillHash: string;
|
|
1117
|
+
promptTemplateVersion: string;
|
|
1118
|
+
buildIntent: "rubric" | "demonstrations" | "preferences" | "verifiable_reward" | "discovery";
|
|
1119
|
+
buildSpecification: {
|
|
1120
|
+
kind: "demonstrations";
|
|
1121
|
+
behavior: string;
|
|
1122
|
+
examples: {
|
|
1123
|
+
id: string;
|
|
1124
|
+
prompt: string;
|
|
1125
|
+
response: string;
|
|
1126
|
+
}[];
|
|
1127
|
+
} | {
|
|
1128
|
+
kind: "preferences";
|
|
1129
|
+
preference: string;
|
|
1130
|
+
pairs: {
|
|
1131
|
+
id: string;
|
|
1132
|
+
prompt: string;
|
|
1133
|
+
chosen: string;
|
|
1134
|
+
rejected: string;
|
|
1135
|
+
rationale: string;
|
|
1136
|
+
}[];
|
|
1137
|
+
} | {
|
|
1138
|
+
kind: "verifiable_reward";
|
|
1139
|
+
task: string;
|
|
1140
|
+
rules: {
|
|
1141
|
+
id: string;
|
|
1142
|
+
points: number;
|
|
1143
|
+
condition: string;
|
|
1144
|
+
}[];
|
|
1145
|
+
otherwisePoints: number;
|
|
1146
|
+
} | {
|
|
1147
|
+
kind: "rubric";
|
|
1148
|
+
task: string;
|
|
1149
|
+
criteria: {
|
|
1150
|
+
id: string;
|
|
1151
|
+
label: string;
|
|
1152
|
+
description: string;
|
|
1153
|
+
}[];
|
|
1154
|
+
positiveExample: string;
|
|
1155
|
+
negativeExample: string;
|
|
1156
|
+
boundaryExample: string;
|
|
1157
|
+
} | null;
|
|
1158
|
+
evidenceHashes: string[];
|
|
1159
|
+
tasksetSdkVersion: string;
|
|
1160
|
+
sourceCommit: string | null;
|
|
1161
|
+
repairHistory: {
|
|
1162
|
+
attempt: number;
|
|
1163
|
+
summary: string;
|
|
1164
|
+
createdAt: string;
|
|
1165
|
+
}[];
|
|
1166
|
+
createdAt: string;
|
|
1167
|
+
};
|
|
1168
|
+
readiness: {
|
|
1169
|
+
schemaVersion: "openpond.tasksetReadiness.v1";
|
|
1170
|
+
tasksetId: string;
|
|
1171
|
+
tasksetHash: string;
|
|
1172
|
+
ready: boolean;
|
|
1173
|
+
recommendedMethod: "none" | "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opd" | "opsd" | "sdpo" | "retrieval";
|
|
1174
|
+
trainingPath: {
|
|
1175
|
+
primaryMethod: "sft" | "dpo" | "grpo" | "ppo" | "sdft" | "opsd" | "sdpo";
|
|
1176
|
+
bootstrap: {
|
|
1177
|
+
method: "sft";
|
|
1178
|
+
purpose: "trajectory_bootstrap";
|
|
1179
|
+
demonstrationRefs: string[];
|
|
1180
|
+
limitations: string[];
|
|
1181
|
+
} | null;
|
|
1182
|
+
} | null;
|
|
1183
|
+
methodReadiness: {
|
|
1184
|
+
method: "sft" | "dpo" | "grpo" | "ppo";
|
|
1185
|
+
status: "recommended" | "compatible" | "needs_dataset_work";
|
|
1186
|
+
reasonCodes: ("taskset_not_ready" | "demonstrations_missing" | "preference_pairs_missing" | "preference_pairs_invalid" | "executable_reward_missing" | "reward_not_calibrated" | "reward_model_missing" | "value_model_required" | "frozen_eval_missing")[];
|
|
1187
|
+
reasons: string[];
|
|
1188
|
+
}[];
|
|
1189
|
+
compatibleDestinationClasses: ("custom" | "export" | "hosted_managed")[];
|
|
1190
|
+
blockers: {
|
|
1191
|
+
code: string;
|
|
1192
|
+
message: string;
|
|
1193
|
+
path: string | null;
|
|
1194
|
+
}[];
|
|
1195
|
+
advisories: {
|
|
1196
|
+
code: string;
|
|
1197
|
+
message: string;
|
|
1198
|
+
path: string | null;
|
|
1199
|
+
}[];
|
|
1200
|
+
warnings: string[];
|
|
1201
|
+
generatedAt: string;
|
|
1202
|
+
} | null;
|
|
1203
|
+
contentHash: string;
|
|
1204
|
+
createdAt: string;
|
|
1205
|
+
updatedAt: string;
|
|
1206
|
+
metadata: Record<string, unknown>;
|
|
1207
|
+
profileRelease?: {
|
|
1208
|
+
id: string;
|
|
1209
|
+
contentHash: string;
|
|
1210
|
+
revision: number;
|
|
1211
|
+
} | null | undefined;
|
|
1212
|
+
datasetArtifact?: {
|
|
1213
|
+
schemaVersion: "openpond.datasetArtifact.v1";
|
|
1214
|
+
id: string;
|
|
1215
|
+
tasksetId: string;
|
|
1216
|
+
tasksetRevision: number;
|
|
1217
|
+
contentHash: string;
|
|
1218
|
+
format: "parquet";
|
|
1219
|
+
schema: {
|
|
1220
|
+
schemaVersion: "openpond.datasetSemanticSchema.v1";
|
|
1221
|
+
fields: {
|
|
1222
|
+
name: string;
|
|
1223
|
+
semanticRole: "metadata" | "prompt" | "reward" | "feedback" | "rejected" | "messages" | "row_id" | "cluster_id" | "demonstration" | "chosen" | "expected_output" | "privileged_context" | "tag";
|
|
1224
|
+
logicalType: "string" | "boolean" | "messages" | "integer" | "float" | "json";
|
|
1225
|
+
nullable: boolean;
|
|
1226
|
+
policy: "metadata" | "privileged" | "visible";
|
|
1227
|
+
}[];
|
|
1228
|
+
schemaHash: string;
|
|
1229
|
+
};
|
|
1230
|
+
shards: {
|
|
1231
|
+
id: string;
|
|
1232
|
+
split: "train" | "validation" | "test" | "frozen_eval";
|
|
1233
|
+
path: string;
|
|
1234
|
+
contentHash: string;
|
|
1235
|
+
schemaHash: string;
|
|
1236
|
+
sizeBytes: number;
|
|
1237
|
+
rowCount: number;
|
|
1238
|
+
rowGroupCount: number;
|
|
1239
|
+
}[];
|
|
1240
|
+
rowCount: number;
|
|
1241
|
+
splitCounts: Record<"train" | "validation" | "test" | "frozen_eval", number>;
|
|
1242
|
+
sourceReceiptRefs: string[];
|
|
1243
|
+
mappingHash: string;
|
|
1244
|
+
qualityReportHash: string;
|
|
1245
|
+
createdAt: string;
|
|
1246
|
+
} | null | undefined;
|
|
1247
|
+
metrics?: {
|
|
1248
|
+
schemaVersion: "openpond.tasksetMetricPolicy.v1";
|
|
1249
|
+
primaryMetric: string;
|
|
1250
|
+
aggregation: "custom" | "mean_score" | "pass_rate" | "weighted_mean";
|
|
1251
|
+
missingReward: "zero" | "exclude";
|
|
1252
|
+
customAggregator: {
|
|
1253
|
+
module: string;
|
|
1254
|
+
exportName: string;
|
|
1255
|
+
contentHash: string;
|
|
1256
|
+
timeoutMs: number;
|
|
1257
|
+
networkPolicy: "none";
|
|
1258
|
+
} | null;
|
|
1259
|
+
taskWeights?: Record<string, number> | undefined;
|
|
1260
|
+
} | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
release: {
|
|
1263
|
+
schemaVersion: "openpond.tasksetRelease.v2";
|
|
1264
|
+
id: string;
|
|
1265
|
+
revision: number;
|
|
1266
|
+
policy: {
|
|
1267
|
+
policyVisibleFields: string[];
|
|
1268
|
+
privilegedFields: string[];
|
|
1269
|
+
hiddenGraderRefs: string[];
|
|
1270
|
+
connectedAppScopes: string[];
|
|
1271
|
+
};
|
|
1272
|
+
environment: {
|
|
1273
|
+
protocolVersion: "openpond.environment.v1";
|
|
1274
|
+
kind: "text" | "work" | "agent" | "custom_program";
|
|
1275
|
+
entrypoint: string;
|
|
1276
|
+
stateful: boolean;
|
|
1277
|
+
deterministicSeeds: boolean;
|
|
1278
|
+
lifecycle: ("create" | "reset" | "step" | "collect" | "destroy")[];
|
|
1279
|
+
networkPolicy: "none" | "declared_read_only" | "declared_scoped";
|
|
1280
|
+
defaultTimeoutMs: number;
|
|
1281
|
+
};
|
|
1282
|
+
tools: {
|
|
1283
|
+
name: string;
|
|
1284
|
+
description: string;
|
|
1285
|
+
inputSchema: Record<string, unknown>;
|
|
1286
|
+
inputSchemaHash: string;
|
|
1287
|
+
sideEffect: "read" | "write";
|
|
1288
|
+
timeoutMs: number;
|
|
1289
|
+
}[];
|
|
1290
|
+
capabilities: {
|
|
1291
|
+
id: string;
|
|
1292
|
+
required: boolean;
|
|
1293
|
+
scopes: string[];
|
|
1294
|
+
portability: "portable" | "host_adapter" | "local_only" | "hosted_only";
|
|
1295
|
+
}[];
|
|
1296
|
+
tasks: {
|
|
1297
|
+
id: string;
|
|
1298
|
+
clusterKey: string;
|
|
1299
|
+
split: "train" | "validation" | "test" | "frozen_eval";
|
|
1300
|
+
input: Record<string, unknown>;
|
|
1301
|
+
expectedOutput: Record<string, unknown> | null;
|
|
1302
|
+
policyVisibleContext: Record<string, unknown>;
|
|
1303
|
+
privilegedContextRef: string | null;
|
|
1304
|
+
artifactRefs: {
|
|
1305
|
+
id: string;
|
|
1306
|
+
path: string;
|
|
1307
|
+
contentHash: string;
|
|
1308
|
+
sizeBytes: number;
|
|
1309
|
+
mediaType: string;
|
|
1310
|
+
visibility: "policy" | "verifier" | "host_private";
|
|
1311
|
+
}[];
|
|
1312
|
+
tags: string[];
|
|
1313
|
+
requiredOutputs?: {
|
|
1314
|
+
path: string;
|
|
1315
|
+
mediaType: string;
|
|
1316
|
+
schemaRef: {
|
|
1317
|
+
id: string;
|
|
1318
|
+
path: string;
|
|
1319
|
+
contentHash: string;
|
|
1320
|
+
sizeBytes: number;
|
|
1321
|
+
mediaType: string;
|
|
1322
|
+
visibility: "policy" | "verifier" | "host_private";
|
|
1323
|
+
} | null;
|
|
1324
|
+
maxBytes: number | null;
|
|
1325
|
+
metadata: Record<string, unknown>;
|
|
1326
|
+
}[] | undefined;
|
|
1327
|
+
}[];
|
|
1328
|
+
graders: ({
|
|
1329
|
+
id: string;
|
|
1330
|
+
version: string;
|
|
1331
|
+
weight: number;
|
|
1332
|
+
hardGate: boolean;
|
|
1333
|
+
rewardEligible: boolean;
|
|
1334
|
+
privileged: boolean;
|
|
1335
|
+
kind: "state" | "content" | "schema" | "artifact" | "runtime_event";
|
|
1336
|
+
config: Record<string, unknown>;
|
|
1337
|
+
} | {
|
|
1338
|
+
id: string;
|
|
1339
|
+
version: string;
|
|
1340
|
+
weight: number;
|
|
1341
|
+
hardGate: boolean;
|
|
1342
|
+
rewardEligible: boolean;
|
|
1343
|
+
privileged: boolean;
|
|
1344
|
+
kind: "model_judge";
|
|
1345
|
+
rubricRef: {
|
|
1346
|
+
id: string;
|
|
1347
|
+
path: string;
|
|
1348
|
+
contentHash: string;
|
|
1349
|
+
sizeBytes: number;
|
|
1350
|
+
mediaType: string;
|
|
1351
|
+
visibility: "policy" | "verifier" | "host_private";
|
|
1352
|
+
};
|
|
1353
|
+
calibrationStatus: "failed" | "pending" | "passed";
|
|
1354
|
+
model?: {
|
|
1355
|
+
providerId: string;
|
|
1356
|
+
modelId: string;
|
|
1357
|
+
revision: string | null;
|
|
1358
|
+
} | undefined;
|
|
1359
|
+
temperature?: number | undefined;
|
|
1360
|
+
} | {
|
|
1361
|
+
id: string;
|
|
1362
|
+
version: string;
|
|
1363
|
+
weight: number;
|
|
1364
|
+
hardGate: boolean;
|
|
1365
|
+
rewardEligible: boolean;
|
|
1366
|
+
privileged: boolean;
|
|
1367
|
+
kind: "custom_verifier";
|
|
1368
|
+
verifierRef: {
|
|
1369
|
+
id: string;
|
|
1370
|
+
path: string;
|
|
1371
|
+
contentHash: string;
|
|
1372
|
+
sizeBytes: number;
|
|
1373
|
+
mediaType: string;
|
|
1374
|
+
visibility: "policy" | "verifier" | "host_private";
|
|
1375
|
+
};
|
|
1376
|
+
timeoutMs: number;
|
|
1377
|
+
networkPolicy: "none";
|
|
1378
|
+
exportName?: string | undefined;
|
|
1379
|
+
} | {
|
|
1380
|
+
id: string;
|
|
1381
|
+
version: string;
|
|
1382
|
+
weight: number;
|
|
1383
|
+
hardGate: boolean;
|
|
1384
|
+
rewardEligible: boolean;
|
|
1385
|
+
privileged: boolean;
|
|
1386
|
+
kind: "human";
|
|
1387
|
+
rubricRef: {
|
|
1388
|
+
id: string;
|
|
1389
|
+
path: string;
|
|
1390
|
+
contentHash: string;
|
|
1391
|
+
sizeBytes: number;
|
|
1392
|
+
mediaType: string;
|
|
1393
|
+
visibility: "policy" | "verifier" | "host_private";
|
|
1394
|
+
};
|
|
1395
|
+
reviewerRole: string;
|
|
1396
|
+
})[];
|
|
1397
|
+
metadata: Record<string, unknown>;
|
|
1398
|
+
contentHash: string;
|
|
1399
|
+
environmentRelease?: {
|
|
1400
|
+
id: string;
|
|
1401
|
+
contentHash: string;
|
|
1402
|
+
} | undefined;
|
|
1403
|
+
verifierSetRelease?: {
|
|
1404
|
+
id: string;
|
|
1405
|
+
contentHash: string;
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
metrics?: {
|
|
1408
|
+
schemaVersion: "openpond.tasksetMetricPolicy.v1";
|
|
1409
|
+
primaryMetric: string;
|
|
1410
|
+
aggregation: "custom" | "mean_score" | "pass_rate" | "weighted_mean";
|
|
1411
|
+
missingReward: "zero" | "exclude";
|
|
1412
|
+
customAggregator: {
|
|
1413
|
+
module: string;
|
|
1414
|
+
exportName: string;
|
|
1415
|
+
contentHash: string;
|
|
1416
|
+
timeoutMs: number;
|
|
1417
|
+
networkPolicy: "none";
|
|
1418
|
+
} | null;
|
|
1419
|
+
taskWeights?: Record<string, number> | undefined;
|
|
1420
|
+
} | undefined;
|
|
1421
|
+
};
|
|
1422
|
+
generatedFiles: {
|
|
1423
|
+
path: string;
|
|
1424
|
+
role: "environment" | "verifier" | "fixture";
|
|
1425
|
+
content: string;
|
|
1426
|
+
}[];
|
|
1427
|
+
};
|
|
719
1428
|
//# sourceMappingURL=training-learning-batch.d.ts.map
|