@openpond/evals 0.12.5 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LEARNING.md +5 -0
  2. package/dist/javascript-isolate-process-source.js +1 -1
  3. package/dist/javascript-verifier-worker-source.js +1 -1
  4. package/dist/learning/admission.js +1 -1
  5. package/dist/learning/contracts.js +12 -0
  6. package/dist/learning/iteration-dispatch-contracts.js +4 -0
  7. package/dist/learning/iteration-dispatch-worker.js +4 -0
  8. package/dist/learning/iteration-eligibility.js +2 -1
  9. package/dist/learning/iteration-exposure.js +30 -0
  10. package/dist/learning/iteration-reservation-cancellation.js +12 -3
  11. package/dist/learning/iteration-reservation-contracts.js +5 -3
  12. package/dist/learning/iteration-reservation-service.js +10 -2
  13. package/dist/learning/iteration-training-parent.js +3 -1
  14. package/dist/learning/reward-authoring.js +4 -2
  15. package/dist/learning/service.js +2 -0
  16. package/dist/sql-execution-process-source.js +1 -1
  17. package/dist/task-schema-validation.js +10 -2
  18. package/dist/types/learning/batch-service.d.ts +1 -0
  19. package/dist/types/learning/batch-service.d.ts.map +1 -1
  20. package/dist/types/learning/contracts.d.ts +42 -0
  21. package/dist/types/learning/contracts.d.ts.map +1 -1
  22. package/dist/types/learning/iteration-dispatch-contracts.d.ts +13 -0
  23. package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -1
  24. package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -1
  25. package/dist/types/learning/iteration-eligibility.d.ts.map +1 -1
  26. package/dist/types/learning/iteration-exposure.d.ts +13 -0
  27. package/dist/types/learning/iteration-exposure.d.ts.map +1 -0
  28. package/dist/types/learning/iteration-reservation-cancellation.d.ts.map +1 -1
  29. package/dist/types/learning/iteration-reservation-contracts.d.ts +13 -3
  30. package/dist/types/learning/iteration-reservation-contracts.d.ts.map +1 -1
  31. package/dist/types/learning/iteration-reservation-service.d.ts.map +1 -1
  32. package/dist/types/learning/iteration-training-parent.d.ts.map +1 -1
  33. package/dist/types/learning/operations.d.ts +38 -0
  34. package/dist/types/learning/operations.d.ts.map +1 -1
  35. package/dist/types/learning/repository.d.ts +28 -2
  36. package/dist/types/learning/repository.d.ts.map +1 -1
  37. package/dist/types/learning/reward-authoring.d.ts.map +1 -1
  38. package/dist/types/learning/service.d.ts.map +1 -1
  39. package/dist/types/learning/transport.d.ts +1009 -970
  40. package/dist/types/learning/transport.d.ts.map +1 -1
  41. package/dist/types/task-schema-validation.d.ts.map +1 -1
  42. package/package.json +2 -2
  43. package/schemas/learning/v1/command-request.schema.json +119 -93
  44. package/schemas/learning/v1/consumption.schema.json +40 -4
  45. package/schemas/learning/v1/evidence.schema.json +3 -0
  46. package/schemas/learning/v1/example-submission.schema.json +3 -0
  47. package/schemas/learning/v1/source.schema.json +20 -0
@@ -832,6 +832,15 @@ export declare const LearningCommandRequestSchema: z.ZodObject<{
832
832
  revision: z.ZodNumber;
833
833
  }, z.core.$strict>;
834
834
  }, z.core.$strict>>;
835
+ datasetOrigin: z.ZodOptional<z.ZodObject<{
836
+ receiptId: z.ZodString;
837
+ packageHash: z.ZodString;
838
+ taskset: z.ZodObject<{
839
+ id: z.ZodString;
840
+ contentHash: z.ZodString;
841
+ revision: z.ZodNumber;
842
+ }, z.core.$strict>;
843
+ }, z.core.$strict>>;
835
844
  capturedOrigin: z.ZodOptional<z.ZodObject<{
836
845
  receiptId: z.ZodString;
837
846
  ownerUserId: z.ZodString;
@@ -1660,6 +1669,15 @@ export declare const LearningCommandRequestSchema: z.ZodObject<{
1660
1669
  revision: z.ZodNumber;
1661
1670
  }, z.core.$strict>;
1662
1671
  }, z.core.$strict>>;
1672
+ datasetOrigin: z.ZodOptional<z.ZodObject<{
1673
+ receiptId: z.ZodString;
1674
+ packageHash: z.ZodString;
1675
+ taskset: z.ZodObject<{
1676
+ id: z.ZodString;
1677
+ contentHash: z.ZodString;
1678
+ revision: z.ZodNumber;
1679
+ }, z.core.$strict>;
1680
+ }, z.core.$strict>>;
1663
1681
  capturedOrigin: z.ZodOptional<z.ZodObject<{
1664
1682
  receiptId: z.ZodString;
1665
1683
  ownerUserId: z.ZodString;
@@ -2016,6 +2034,7 @@ export declare const LearningCommandRequestSchema: z.ZodObject<{
2016
2034
  validation: "validation";
2017
2035
  }>;
2018
2036
  input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2037
+ policyVisibleContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2019
2038
  observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2020
2039
  expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2021
2040
  evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
@@ -2516,163 +2535,24 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
2516
2535
  updatedAt: z.ZodString;
2517
2536
  contentHash: z.ZodString;
2518
2537
  }, z.core.$strict>], "targetKind"> | z.ZodObject<{
2519
- schemaVersion: z.ZodLiteral<"openpond.taskFeedbackRecord.v1">;
2520
- id: z.ZodString;
2521
- submission: z.ZodObject<{
2522
- schemaVersion: z.ZodLiteral<"openpond.taskFeedback.v1">;
2523
- sourceId: z.ZodString;
2524
- idempotencyKey: z.ZodString;
2525
- exampleId: z.ZodString;
2526
- attemptId: z.ZodString;
2527
- expectedEvidenceHash: z.ZodNullable<z.ZodString>;
2528
- occurredAt: z.ZodString;
2529
- kind: z.ZodEnum<{
2530
- family_resolution: "family_resolution";
2531
- ground_truth_correction: "ground_truth_correction";
2532
- input_correction: "input_correction";
2533
- outcome: "outcome";
2534
- target_correction: "target_correction";
2535
- }>;
2536
- value: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2537
- note: z.ZodString;
2538
- }, z.core.$strict>;
2539
- status: z.ZodEnum<{
2540
- applied: "applied";
2541
- pending_example: "pending_example";
2542
- pending_review: "pending_review";
2543
- rejected: "rejected";
2544
- superseded: "superseded";
2545
- }>;
2546
- evidence: z.ZodNullable<z.ZodObject<{
2547
- id: z.ZodString;
2548
- contentHash: z.ZodString;
2549
- revision: z.ZodNumber;
2550
- }, z.core.$strict>>;
2551
- createdAt: z.ZodString;
2552
- revision: z.ZodNumber;
2553
- submittedBy: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2554
- id: z.ZodString;
2555
- role: z.ZodEnum<{
2556
- editor: "editor";
2557
- reviewer: "reviewer";
2558
- source: "source";
2559
- }>;
2560
- sourceId: z.ZodNullable<z.ZodString>;
2561
- }, z.core.$strict>>>;
2562
- review: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2563
- actorId: z.ZodString;
2564
- decision: z.ZodNullable<z.ZodObject<{
2565
- id: z.ZodString;
2566
- contentHash: z.ZodString;
2567
- revision: z.ZodNumber;
2568
- }, z.core.$strict>>;
2569
- note: z.ZodString;
2570
- resolvedAt: z.ZodString;
2571
- }, z.core.$strict>>>;
2572
- }, z.core.$strict> | z.ZodObject<{
2573
- schemaVersion: z.ZodLiteral<"openpond.learningIteration.v1">;
2538
+ schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
2574
2539
  id: z.ZodString;
2575
2540
  revision: z.ZodNumber;
2576
- policy: z.ZodObject<{
2541
+ draft: z.ZodObject<{
2577
2542
  id: z.ZodString;
2578
2543
  contentHash: z.ZodString;
2579
2544
  revision: z.ZodNumber;
2580
2545
  }, z.core.$strict>;
2581
- status: z.ZodEnum<{
2582
- accepted: "accepted";
2583
- cancelled: "cancelled";
2584
- cancelling: "cancelling";
2585
- candidate_ready: "candidate_ready";
2586
- completed_without_candidate: "completed_without_candidate";
2587
- dispatching: "dispatching";
2588
- evaluating: "evaluating";
2589
- failed: "failed";
2590
- paused: "paused";
2591
- ready: "ready";
2592
- rejected: "rejected";
2593
- training: "training";
2594
- waiting_for_data: "waiting_for_data";
2595
- waiting_for_review: "waiting_for_review";
2596
- }>;
2597
- triggerIdentity: z.ZodString;
2598
- batch: z.ZodNullable<z.ZodObject<{
2546
+ reward: z.ZodObject<{
2599
2547
  id: z.ZodString;
2600
2548
  contentHash: z.ZodString;
2601
2549
  revision: z.ZodNumber;
2602
- }, z.core.$strict>>;
2603
- sourceWatermarks: z.ZodRecord<z.ZodString, z.ZodNumber>;
2604
- trainingParent: z.ZodObject<{
2605
- id: z.ZodString;
2606
- contentHash: z.ZodString;
2607
2550
  }, z.core.$strict>;
2608
- trainingParentSelection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2609
- iterationId: z.ZodString;
2610
- iterationRevision: z.ZodNumber;
2611
- candidate: z.ZodObject<{
2612
- id: z.ZodString;
2613
- contentHash: z.ZodString;
2614
- }, z.core.$strict>;
2615
- decision: z.ZodObject<{
2616
- id: z.ZodString;
2617
- contentHash: z.ZodString;
2618
- revision: z.ZodNumber;
2619
- }, z.core.$strict>;
2620
- decidedAt: z.ZodString;
2621
- }, z.core.$strict>>>;
2622
- teacher: z.ZodNullable<z.ZodObject<{
2623
- id: z.ZodString;
2624
- contentHash: z.ZodString;
2625
- }, z.core.$strict>>;
2626
- upstreamEvent: z.ZodNullable<z.ZodObject<{
2627
- id: z.ZodString;
2628
- contentHash: z.ZodString;
2629
- }, z.core.$strict>>;
2630
- trainingJob: z.ZodNullable<z.ZodObject<{
2631
- id: z.ZodString;
2632
- contentHash: z.ZodString;
2633
- }, z.core.$strict>>;
2634
- evaluationJob: z.ZodNullable<z.ZodObject<{
2635
- id: z.ZodString;
2636
- contentHash: z.ZodString;
2637
- }, z.core.$strict>>;
2638
- candidateVersion: z.ZodNullable<z.ZodObject<{
2639
- id: z.ZodString;
2640
- contentHash: z.ZodString;
2641
- }, z.core.$strict>>;
2642
- candidateDecision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2551
+ snapshotHash: z.ZodString;
2552
+ fixtureRefs: z.ZodArray<z.ZodObject<{
2643
2553
  id: z.ZodString;
2644
2554
  contentHash: z.ZodString;
2645
- revision: z.ZodNumber;
2646
- }, z.core.$strict>>>;
2647
- candidateDecisionAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2648
- dispatchId: z.ZodString;
2649
- retryCount: z.ZodNumber;
2650
- spendUsd: z.ZodNumber;
2651
- failure: z.ZodNullable<z.ZodObject<{
2652
- code: z.ZodString;
2653
- message: z.ZodString;
2654
2555
  }, z.core.$strict>>;
2655
- createdAt: z.ZodString;
2656
- updatedAt: z.ZodString;
2657
- }, z.core.$strict> | z.ZodObject<{
2658
- schemaVersion: z.ZodLiteral<"openpond.taskGradeRun.v1">;
2659
- id: z.ZodString;
2660
- revision: z.ZodNumber;
2661
- evidence: z.ZodObject<{
2662
- id: z.ZodString;
2663
- contentHash: z.ZodString;
2664
- revision: z.ZodNumber;
2665
- }, z.core.$strict>;
2666
- binding: z.ZodObject<{
2667
- id: z.ZodString;
2668
- contentHash: z.ZodString;
2669
- revision: z.ZodNumber;
2670
- }, z.core.$strict>;
2671
- target: z.ZodEnum<{
2672
- observed: "observed";
2673
- proposed_target: "proposed_target";
2674
- }>;
2675
- output: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2676
2556
  status: z.ZodEnum<{
2677
2557
  cancelled: "cancelled";
2678
2558
  cancelling: "cancelling";
@@ -2681,17 +2561,17 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
2681
2561
  queued: "queued";
2682
2562
  running: "running";
2683
2563
  }>;
2684
- composition: z.ZodNullable<z.ZodObject<{
2685
- schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
2686
- binding: z.ZodObject<{
2564
+ runtime: z.ZodNullable<z.ZodObject<{
2565
+ id: z.ZodString;
2566
+ packageVersion: z.ZodString;
2567
+ engine: z.ZodString;
2568
+ }, z.core.$strict>>;
2569
+ results: z.ZodArray<z.ZodObject<{
2570
+ fixture: z.ZodObject<{
2687
2571
  id: z.ZodString;
2688
2572
  contentHash: z.ZodString;
2689
- revision: z.ZodNumber;
2690
2573
  }, z.core.$strict>;
2691
- taskHash: z.ZodString;
2692
- taskId: z.ZodOptional<z.ZodString>;
2693
- outputHash: z.ZodString;
2694
- results: z.ZodArray<z.ZodObject<{
2574
+ result: z.ZodObject<{
2695
2575
  graderId: z.ZodString;
2696
2576
  reward: z.ZodObject<{
2697
2577
  id: z.ZodString;
@@ -2768,32 +2648,11 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
2768
2648
  contentHash: z.ZodString;
2769
2649
  }, z.core.$strict>>;
2770
2650
  message: z.ZodNullable<z.ZodString>;
2771
- }, z.core.$strict>>;
2772
- training: z.ZodObject<{
2773
- status: z.ZodEnum<{
2774
- not_configured: "not_configured";
2775
- pending: "pending";
2776
- scored: "scored";
2777
- unscorable: "unscorable";
2778
- }>;
2779
- score: z.ZodNullable<z.ZodNumber>;
2780
- passed: z.ZodNullable<z.ZodBoolean>;
2781
- }, z.core.$strict>;
2782
- evaluation: z.ZodObject<{
2783
- status: z.ZodEnum<{
2784
- not_configured: "not_configured";
2785
- pending: "pending";
2786
- scored: "scored";
2787
- unscorable: "unscorable";
2788
- }>;
2789
- score: z.ZodNullable<z.ZodNumber>;
2790
- passed: z.ZodNullable<z.ZodBoolean>;
2791
2651
  }, z.core.$strict>;
2792
- contentHash: z.ZodString;
2652
+ matchesExpectation: z.ZodBoolean;
2793
2653
  }, z.core.$strict>>;
2794
- leaseOwner: z.ZodNullable<z.ZodString>;
2795
- leaseExpiresAt: z.ZodNullable<z.ZodString>;
2796
- attemptCount: z.ZodNumber;
2654
+ matchesExpectations: z.ZodNullable<z.ZodBoolean>;
2655
+ failure: z.ZodNullable<z.ZodString>;
2797
2656
  timeoutMs: z.ZodNumber;
2798
2657
  maximumSpendUsd: z.ZodNumber;
2799
2658
  judgeCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2819,158 +2678,65 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
2819
2678
  }, z.core.$strict>>;
2820
2679
  }, z.core.$strict>>>;
2821
2680
  requestedBy: z.ZodOptional<z.ZodString>;
2822
- failure: z.ZodNullable<z.ZodString>;
2681
+ leaseOwner: z.ZodNullable<z.ZodString>;
2682
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
2683
+ attemptCount: z.ZodNumber;
2823
2684
  createdAt: z.ZodString;
2824
2685
  updatedAt: z.ZodString;
2825
2686
  }, z.core.$strict> | z.ZodObject<{
2826
- schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
2687
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedbackRecord.v1">;
2827
2688
  id: z.ZodString;
2828
- revision: z.ZodNumber;
2829
- draft: z.ZodObject<{
2830
- id: z.ZodString;
2831
- contentHash: z.ZodString;
2832
- revision: z.ZodNumber;
2689
+ submission: z.ZodObject<{
2690
+ schemaVersion: z.ZodLiteral<"openpond.taskFeedback.v1">;
2691
+ sourceId: z.ZodString;
2692
+ idempotencyKey: z.ZodString;
2693
+ exampleId: z.ZodString;
2694
+ attemptId: z.ZodString;
2695
+ expectedEvidenceHash: z.ZodNullable<z.ZodString>;
2696
+ occurredAt: z.ZodString;
2697
+ kind: z.ZodEnum<{
2698
+ family_resolution: "family_resolution";
2699
+ ground_truth_correction: "ground_truth_correction";
2700
+ input_correction: "input_correction";
2701
+ outcome: "outcome";
2702
+ target_correction: "target_correction";
2703
+ }>;
2704
+ value: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2705
+ note: z.ZodString;
2833
2706
  }, z.core.$strict>;
2834
- reward: z.ZodObject<{
2707
+ status: z.ZodEnum<{
2708
+ applied: "applied";
2709
+ pending_example: "pending_example";
2710
+ pending_review: "pending_review";
2711
+ rejected: "rejected";
2712
+ superseded: "superseded";
2713
+ }>;
2714
+ evidence: z.ZodNullable<z.ZodObject<{
2835
2715
  id: z.ZodString;
2836
2716
  contentHash: z.ZodString;
2837
2717
  revision: z.ZodNumber;
2838
- }, z.core.$strict>;
2839
- snapshotHash: z.ZodString;
2840
- fixtureRefs: z.ZodArray<z.ZodObject<{
2841
- id: z.ZodString;
2842
- contentHash: z.ZodString;
2843
2718
  }, z.core.$strict>>;
2844
- status: z.ZodEnum<{
2845
- cancelled: "cancelled";
2846
- cancelling: "cancelling";
2847
- completed: "completed";
2848
- failed: "failed";
2849
- queued: "queued";
2850
- running: "running";
2851
- }>;
2852
- runtime: z.ZodNullable<z.ZodObject<{
2719
+ createdAt: z.ZodString;
2720
+ revision: z.ZodNumber;
2721
+ submittedBy: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2853
2722
  id: z.ZodString;
2854
- packageVersion: z.ZodString;
2855
- engine: z.ZodString;
2856
- }, z.core.$strict>>;
2857
- results: z.ZodArray<z.ZodObject<{
2858
- fixture: z.ZodObject<{
2723
+ role: z.ZodEnum<{
2724
+ editor: "editor";
2725
+ reviewer: "reviewer";
2726
+ source: "source";
2727
+ }>;
2728
+ sourceId: z.ZodNullable<z.ZodString>;
2729
+ }, z.core.$strict>>>;
2730
+ review: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2731
+ actorId: z.ZodString;
2732
+ decision: z.ZodNullable<z.ZodObject<{
2859
2733
  id: z.ZodString;
2860
2734
  contentHash: z.ZodString;
2861
- }, z.core.$strict>;
2862
- result: z.ZodObject<{
2863
- graderId: z.ZodString;
2864
- reward: z.ZodObject<{
2865
- id: z.ZodString;
2866
- contentHash: z.ZodString;
2867
- revision: z.ZodNumber;
2868
- }, z.core.$strict>;
2869
- role: z.ZodEnum<{
2870
- evaluation: "evaluation";
2871
- training: "training";
2872
- }>;
2873
- status: z.ZodEnum<{
2874
- failed: "failed";
2875
- not_applicable: "not_applicable";
2876
- pending: "pending";
2877
- scored: "scored";
2878
- unavailable: "unavailable";
2879
- }>;
2880
- rawScore: z.ZodNullable<z.ZodNumber>;
2881
- normalizedScore: z.ZodNullable<z.ZodNumber>;
2882
- passed: z.ZodNullable<z.ZodBoolean>;
2883
- evidenceHashes: z.ZodArray<z.ZodString>;
2884
- graderEvidence: z.ZodOptional<z.ZodObject<{
2885
- schemaVersion: z.ZodLiteral<"openpond.graderEvidence.v1">;
2886
- graderId: z.ZodString;
2887
- graderVersion: z.ZodString;
2888
- status: z.ZodOptional<z.ZodEnum<{
2889
- failed: "failed";
2890
- pending: "pending";
2891
- scored: "scored";
2892
- unavailable: "unavailable";
2893
- }>>;
2894
- score: z.ZodNullable<z.ZodNumber>;
2895
- passed: z.ZodBoolean;
2896
- rewardEligible: z.ZodBoolean;
2897
- failureClass: z.ZodNullable<z.ZodEnum<{
2898
- cancelled: "cancelled";
2899
- environment_failure: "environment_failure";
2900
- grader_failure: "grader_failure";
2901
- infrastructure_failure: "infrastructure_failure";
2902
- policy_failure: "policy_failure";
2903
- timeout: "timeout";
2904
- }>>;
2905
- feedback: z.ZodArray<z.ZodString>;
2906
- visibleEvidenceRefs: z.ZodArray<z.ZodString>;
2907
- privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
2908
- modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
2909
- schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
2910
- providerId: z.ZodString;
2911
- modelId: z.ZodString;
2912
- modelRevision: z.ZodNullable<z.ZodString>;
2913
- responseId: z.ZodNullable<z.ZodString>;
2914
- requestHash: z.ZodString;
2915
- responseHash: z.ZodString;
2916
- inputTokens: z.ZodNullable<z.ZodNumber>;
2917
- outputTokens: z.ZodNullable<z.ZodNumber>;
2918
- costUsd: z.ZodNullable<z.ZodNumber>;
2919
- transportPolicy: z.ZodOptional<z.ZodObject<{
2920
- schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
2921
- responseFormat: z.ZodLiteral<"judgment_json_schema">;
2922
- reasoningEffort: z.ZodEnum<{
2923
- high: "high";
2924
- low: "low";
2925
- max: "max";
2926
- medium: "medium";
2927
- off: "off";
2928
- xhigh: "xhigh";
2929
- }>;
2930
- maximumOutputTokens: z.ZodNumber;
2931
- }, z.core.$strict>>;
2932
- effectiveRequestHash: z.ZodOptional<z.ZodString>;
2933
- finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2934
- reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2935
- }, z.core.$strict>>;
2936
- contentHash: z.ZodString;
2937
- }, z.core.$strict>>;
2938
- message: z.ZodNullable<z.ZodString>;
2939
- }, z.core.$strict>;
2940
- matchesExpectation: z.ZodBoolean;
2941
- }, z.core.$strict>>;
2942
- matchesExpectations: z.ZodNullable<z.ZodBoolean>;
2943
- failure: z.ZodNullable<z.ZodString>;
2944
- timeoutMs: z.ZodNumber;
2945
- maximumSpendUsd: z.ZodNumber;
2946
- judgeCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2947
- id: z.ZodString;
2948
- requestHash: z.ZodString;
2949
- reservedUsd: z.ZodNumber;
2950
- status: z.ZodEnum<{
2951
- not_dispatched: "not_dispatched";
2952
- reserved: "reserved";
2953
- settled: "settled";
2954
- }>;
2955
- response: z.ZodNullable<z.ZodObject<{
2956
- text: z.ZodString;
2957
- modelId: z.ZodString;
2958
- modelRevision: z.ZodNullable<z.ZodString>;
2959
- responseId: z.ZodNullable<z.ZodString>;
2960
- inputTokens: z.ZodNullable<z.ZodNumber>;
2961
- outputTokens: z.ZodNullable<z.ZodNumber>;
2962
- costUsd: z.ZodNullable<z.ZodNumber>;
2963
- effectiveRequestHash: z.ZodOptional<z.ZodString>;
2964
- finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2965
- reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2735
+ revision: z.ZodNumber;
2966
2736
  }, z.core.$strict>>;
2737
+ note: z.ZodString;
2738
+ resolvedAt: z.ZodString;
2967
2739
  }, z.core.$strict>>>;
2968
- requestedBy: z.ZodOptional<z.ZodString>;
2969
- leaseOwner: z.ZodNullable<z.ZodString>;
2970
- leaseExpiresAt: z.ZodNullable<z.ZodString>;
2971
- attemptCount: z.ZodNumber;
2972
- createdAt: z.ZodString;
2973
- updatedAt: z.ZodString;
2974
2740
  }, z.core.$strict> | z.ZodObject<{
2975
2741
  schemaVersion: z.ZodLiteral<"openpond.learningChain.v1">;
2976
2742
  id: z.ZodString;
@@ -2997,7 +2763,7 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
2997
2763
  }, z.core.$strict> | z.ZodObject<{
2998
2764
  schemaVersion: z.ZodLiteral<"openpond.learningConsumption.v1">;
2999
2765
  id: z.ZodString;
3000
- revision: z.ZodLiteral<1>;
2766
+ revision: z.ZodNumber;
3001
2767
  chainId: z.ZodString;
3002
2768
  iterationId: z.ZodString;
3003
2769
  evidence: z.ZodObject<{
@@ -3011,6 +2777,16 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
3011
2777
  revision: z.ZodNumber;
3012
2778
  }, z.core.$strict>;
3013
2779
  reservedAt: z.ZodString;
2780
+ exposure: z.ZodOptional<z.ZodEnum<{
2781
+ exposed: "exposed";
2782
+ reserved: "reserved";
2783
+ trained: "trained";
2784
+ unexposed: "unexposed";
2785
+ }>>;
2786
+ executionReceipt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2787
+ id: z.ZodString;
2788
+ contentHash: z.ZodString;
2789
+ }, z.core.$strict>>>;
3014
2790
  }, z.core.$strict> | z.ZodObject<{
3015
2791
  schemaVersion: z.ZodLiteral<"openpond.learningIterationReservation.v1">;
3016
2792
  id: z.ZodString;
@@ -3185,81 +2961,334 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
3185
2961
  createdAt: z.ZodString;
3186
2962
  contentHash: z.ZodString;
3187
2963
  }, z.core.$strict> | z.ZodObject<{
3188
- schemaVersion: z.ZodLiteral<"openpond.tasksetRelease.v2">;
2964
+ schemaVersion: z.ZodLiteral<"openpond.learningIteration.v1">;
3189
2965
  id: z.ZodString;
3190
2966
  revision: z.ZodNumber;
3191
2967
  policy: z.ZodObject<{
3192
- policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
3193
- privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
3194
- hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
3195
- connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2968
+ id: z.ZodString;
2969
+ contentHash: z.ZodString;
2970
+ revision: z.ZodNumber;
3196
2971
  }, z.core.$strict>;
3197
- environment: z.ZodObject<{
3198
- protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
3199
- kind: z.ZodEnum<{
3200
- agent: "agent";
3201
- custom_program: "custom_program";
3202
- text: "text";
3203
- work: "work";
3204
- }>;
3205
- entrypoint: z.ZodString;
3206
- stateful: z.ZodBoolean;
3207
- deterministicSeeds: z.ZodBoolean;
3208
- lifecycle: z.ZodArray<z.ZodEnum<{
3209
- collect: "collect";
3210
- create: "create";
3211
- destroy: "destroy";
3212
- reset: "reset";
3213
- step: "step";
3214
- }>>;
3215
- networkPolicy: z.ZodEnum<{
3216
- declared_read_only: "declared_read_only";
3217
- declared_scoped: "declared_scoped";
3218
- none: "none";
3219
- }>;
3220
- defaultTimeoutMs: z.ZodNumber;
2972
+ status: z.ZodEnum<{
2973
+ accepted: "accepted";
2974
+ cancelled: "cancelled";
2975
+ cancelling: "cancelling";
2976
+ candidate_ready: "candidate_ready";
2977
+ completed_without_candidate: "completed_without_candidate";
2978
+ dispatching: "dispatching";
2979
+ evaluating: "evaluating";
2980
+ failed: "failed";
2981
+ paused: "paused";
2982
+ ready: "ready";
2983
+ rejected: "rejected";
2984
+ training: "training";
2985
+ waiting_for_data: "waiting_for_data";
2986
+ waiting_for_review: "waiting_for_review";
2987
+ }>;
2988
+ triggerIdentity: z.ZodString;
2989
+ batch: z.ZodNullable<z.ZodObject<{
2990
+ id: z.ZodString;
2991
+ contentHash: z.ZodString;
2992
+ revision: z.ZodNumber;
2993
+ }, z.core.$strict>>;
2994
+ sourceWatermarks: z.ZodRecord<z.ZodString, z.ZodNumber>;
2995
+ trainingParent: z.ZodObject<{
2996
+ id: z.ZodString;
2997
+ contentHash: z.ZodString;
3221
2998
  }, z.core.$strict>;
3222
- environmentRelease: z.ZodOptional<z.ZodObject<{
2999
+ trainingParentSelection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3000
+ iterationId: z.ZodString;
3001
+ iterationRevision: z.ZodNumber;
3002
+ candidate: z.ZodObject<{
3003
+ id: z.ZodString;
3004
+ contentHash: z.ZodString;
3005
+ }, z.core.$strict>;
3006
+ decision: z.ZodObject<{
3007
+ id: z.ZodString;
3008
+ contentHash: z.ZodString;
3009
+ revision: z.ZodNumber;
3010
+ }, z.core.$strict>;
3011
+ decidedAt: z.ZodString;
3012
+ }, z.core.$strict>>>;
3013
+ teacher: z.ZodNullable<z.ZodObject<{
3223
3014
  id: z.ZodString;
3224
3015
  contentHash: z.ZodString;
3225
3016
  }, z.core.$strict>>;
3226
- tools: z.ZodArray<z.ZodObject<{
3227
- name: z.ZodString;
3228
- description: z.ZodString;
3229
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3230
- inputSchemaHash: z.ZodString;
3231
- sideEffect: z.ZodEnum<{
3232
- read: "read";
3233
- write: "write";
3234
- }>;
3235
- timeoutMs: z.ZodNumber;
3017
+ upstreamEvent: z.ZodNullable<z.ZodObject<{
3018
+ id: z.ZodString;
3019
+ contentHash: z.ZodString;
3236
3020
  }, z.core.$strict>>;
3237
- capabilities: z.ZodArray<z.ZodObject<{
3021
+ trainingJob: z.ZodNullable<z.ZodObject<{
3238
3022
  id: z.ZodString;
3239
- required: z.ZodBoolean;
3240
- scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3241
- portability: z.ZodEnum<{
3242
- host_adapter: "host_adapter";
3243
- hosted_only: "hosted_only";
3244
- local_only: "local_only";
3245
- portable: "portable";
3246
- }>;
3023
+ contentHash: z.ZodString;
3247
3024
  }, z.core.$strict>>;
3248
- tasks: z.ZodArray<z.ZodObject<{
3025
+ evaluationJob: z.ZodNullable<z.ZodObject<{
3249
3026
  id: z.ZodString;
3250
- clusterKey: z.ZodString;
3251
- split: z.ZodEnum<{
3252
- frozen_eval: "frozen_eval";
3253
- test: "test";
3254
- train: "train";
3255
- validation: "validation";
3256
- }>;
3257
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3258
- expectedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3259
- policyVisibleContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3260
- privilegedContextRef: z.ZodNullable<z.ZodString>;
3261
- artifactRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3262
- id: z.ZodString;
3027
+ contentHash: z.ZodString;
3028
+ }, z.core.$strict>>;
3029
+ candidateVersion: z.ZodNullable<z.ZodObject<{
3030
+ id: z.ZodString;
3031
+ contentHash: z.ZodString;
3032
+ }, z.core.$strict>>;
3033
+ candidateDecision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3034
+ id: z.ZodString;
3035
+ contentHash: z.ZodString;
3036
+ revision: z.ZodNumber;
3037
+ }, z.core.$strict>>>;
3038
+ candidateDecisionAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3039
+ dispatchId: z.ZodString;
3040
+ retryCount: z.ZodNumber;
3041
+ spendUsd: z.ZodNumber;
3042
+ failure: z.ZodNullable<z.ZodObject<{
3043
+ code: z.ZodString;
3044
+ message: z.ZodString;
3045
+ }, z.core.$strict>>;
3046
+ createdAt: z.ZodString;
3047
+ updatedAt: z.ZodString;
3048
+ }, z.core.$strict> | z.ZodObject<{
3049
+ schemaVersion: z.ZodLiteral<"openpond.taskGradeRun.v1">;
3050
+ id: z.ZodString;
3051
+ revision: z.ZodNumber;
3052
+ evidence: z.ZodObject<{
3053
+ id: z.ZodString;
3054
+ contentHash: z.ZodString;
3055
+ revision: z.ZodNumber;
3056
+ }, z.core.$strict>;
3057
+ binding: z.ZodObject<{
3058
+ id: z.ZodString;
3059
+ contentHash: z.ZodString;
3060
+ revision: z.ZodNumber;
3061
+ }, z.core.$strict>;
3062
+ target: z.ZodEnum<{
3063
+ observed: "observed";
3064
+ proposed_target: "proposed_target";
3065
+ }>;
3066
+ output: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3067
+ status: z.ZodEnum<{
3068
+ cancelled: "cancelled";
3069
+ cancelling: "cancelling";
3070
+ completed: "completed";
3071
+ failed: "failed";
3072
+ queued: "queued";
3073
+ running: "running";
3074
+ }>;
3075
+ composition: z.ZodNullable<z.ZodObject<{
3076
+ schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
3077
+ binding: z.ZodObject<{
3078
+ id: z.ZodString;
3079
+ contentHash: z.ZodString;
3080
+ revision: z.ZodNumber;
3081
+ }, z.core.$strict>;
3082
+ taskHash: z.ZodString;
3083
+ taskId: z.ZodOptional<z.ZodString>;
3084
+ outputHash: z.ZodString;
3085
+ results: z.ZodArray<z.ZodObject<{
3086
+ graderId: z.ZodString;
3087
+ reward: z.ZodObject<{
3088
+ id: z.ZodString;
3089
+ contentHash: z.ZodString;
3090
+ revision: z.ZodNumber;
3091
+ }, z.core.$strict>;
3092
+ role: z.ZodEnum<{
3093
+ evaluation: "evaluation";
3094
+ training: "training";
3095
+ }>;
3096
+ status: z.ZodEnum<{
3097
+ failed: "failed";
3098
+ not_applicable: "not_applicable";
3099
+ pending: "pending";
3100
+ scored: "scored";
3101
+ unavailable: "unavailable";
3102
+ }>;
3103
+ rawScore: z.ZodNullable<z.ZodNumber>;
3104
+ normalizedScore: z.ZodNullable<z.ZodNumber>;
3105
+ passed: z.ZodNullable<z.ZodBoolean>;
3106
+ evidenceHashes: z.ZodArray<z.ZodString>;
3107
+ graderEvidence: z.ZodOptional<z.ZodObject<{
3108
+ schemaVersion: z.ZodLiteral<"openpond.graderEvidence.v1">;
3109
+ graderId: z.ZodString;
3110
+ graderVersion: z.ZodString;
3111
+ status: z.ZodOptional<z.ZodEnum<{
3112
+ failed: "failed";
3113
+ pending: "pending";
3114
+ scored: "scored";
3115
+ unavailable: "unavailable";
3116
+ }>>;
3117
+ score: z.ZodNullable<z.ZodNumber>;
3118
+ passed: z.ZodBoolean;
3119
+ rewardEligible: z.ZodBoolean;
3120
+ failureClass: z.ZodNullable<z.ZodEnum<{
3121
+ cancelled: "cancelled";
3122
+ environment_failure: "environment_failure";
3123
+ grader_failure: "grader_failure";
3124
+ infrastructure_failure: "infrastructure_failure";
3125
+ policy_failure: "policy_failure";
3126
+ timeout: "timeout";
3127
+ }>>;
3128
+ feedback: z.ZodArray<z.ZodString>;
3129
+ visibleEvidenceRefs: z.ZodArray<z.ZodString>;
3130
+ privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
3131
+ modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
3132
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
3133
+ providerId: z.ZodString;
3134
+ modelId: z.ZodString;
3135
+ modelRevision: z.ZodNullable<z.ZodString>;
3136
+ responseId: z.ZodNullable<z.ZodString>;
3137
+ requestHash: z.ZodString;
3138
+ responseHash: z.ZodString;
3139
+ inputTokens: z.ZodNullable<z.ZodNumber>;
3140
+ outputTokens: z.ZodNullable<z.ZodNumber>;
3141
+ costUsd: z.ZodNullable<z.ZodNumber>;
3142
+ transportPolicy: z.ZodOptional<z.ZodObject<{
3143
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
3144
+ responseFormat: z.ZodLiteral<"judgment_json_schema">;
3145
+ reasoningEffort: z.ZodEnum<{
3146
+ high: "high";
3147
+ low: "low";
3148
+ max: "max";
3149
+ medium: "medium";
3150
+ off: "off";
3151
+ xhigh: "xhigh";
3152
+ }>;
3153
+ maximumOutputTokens: z.ZodNumber;
3154
+ }, z.core.$strict>>;
3155
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
3156
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3157
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3158
+ }, z.core.$strict>>;
3159
+ contentHash: z.ZodString;
3160
+ }, z.core.$strict>>;
3161
+ message: z.ZodNullable<z.ZodString>;
3162
+ }, z.core.$strict>>;
3163
+ training: z.ZodObject<{
3164
+ status: z.ZodEnum<{
3165
+ not_configured: "not_configured";
3166
+ pending: "pending";
3167
+ scored: "scored";
3168
+ unscorable: "unscorable";
3169
+ }>;
3170
+ score: z.ZodNullable<z.ZodNumber>;
3171
+ passed: z.ZodNullable<z.ZodBoolean>;
3172
+ }, z.core.$strict>;
3173
+ evaluation: z.ZodObject<{
3174
+ status: z.ZodEnum<{
3175
+ not_configured: "not_configured";
3176
+ pending: "pending";
3177
+ scored: "scored";
3178
+ unscorable: "unscorable";
3179
+ }>;
3180
+ score: z.ZodNullable<z.ZodNumber>;
3181
+ passed: z.ZodNullable<z.ZodBoolean>;
3182
+ }, z.core.$strict>;
3183
+ contentHash: z.ZodString;
3184
+ }, z.core.$strict>>;
3185
+ leaseOwner: z.ZodNullable<z.ZodString>;
3186
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
3187
+ attemptCount: z.ZodNumber;
3188
+ timeoutMs: z.ZodNumber;
3189
+ maximumSpendUsd: z.ZodNumber;
3190
+ judgeCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
3191
+ id: z.ZodString;
3192
+ requestHash: z.ZodString;
3193
+ reservedUsd: z.ZodNumber;
3194
+ status: z.ZodEnum<{
3195
+ not_dispatched: "not_dispatched";
3196
+ reserved: "reserved";
3197
+ settled: "settled";
3198
+ }>;
3199
+ response: z.ZodNullable<z.ZodObject<{
3200
+ text: z.ZodString;
3201
+ modelId: z.ZodString;
3202
+ modelRevision: z.ZodNullable<z.ZodString>;
3203
+ responseId: z.ZodNullable<z.ZodString>;
3204
+ inputTokens: z.ZodNullable<z.ZodNumber>;
3205
+ outputTokens: z.ZodNullable<z.ZodNumber>;
3206
+ costUsd: z.ZodNullable<z.ZodNumber>;
3207
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
3208
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3209
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3210
+ }, z.core.$strict>>;
3211
+ }, z.core.$strict>>>;
3212
+ requestedBy: z.ZodOptional<z.ZodString>;
3213
+ failure: z.ZodNullable<z.ZodString>;
3214
+ createdAt: z.ZodString;
3215
+ updatedAt: z.ZodString;
3216
+ }, z.core.$strict> | z.ZodObject<{
3217
+ schemaVersion: z.ZodLiteral<"openpond.tasksetRelease.v2">;
3218
+ id: z.ZodString;
3219
+ revision: z.ZodNumber;
3220
+ policy: z.ZodObject<{
3221
+ policyVisibleFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
3222
+ privilegedFields: z.ZodDefault<z.ZodArray<z.ZodString>>;
3223
+ hiddenGraderRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
3224
+ connectedAppScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3225
+ }, z.core.$strict>;
3226
+ environment: z.ZodObject<{
3227
+ protocolVersion: z.ZodLiteral<"openpond.environment.v1">;
3228
+ kind: z.ZodEnum<{
3229
+ agent: "agent";
3230
+ custom_program: "custom_program";
3231
+ text: "text";
3232
+ work: "work";
3233
+ }>;
3234
+ entrypoint: z.ZodString;
3235
+ stateful: z.ZodBoolean;
3236
+ deterministicSeeds: z.ZodBoolean;
3237
+ lifecycle: z.ZodArray<z.ZodEnum<{
3238
+ collect: "collect";
3239
+ create: "create";
3240
+ destroy: "destroy";
3241
+ reset: "reset";
3242
+ step: "step";
3243
+ }>>;
3244
+ networkPolicy: z.ZodEnum<{
3245
+ declared_read_only: "declared_read_only";
3246
+ declared_scoped: "declared_scoped";
3247
+ none: "none";
3248
+ }>;
3249
+ defaultTimeoutMs: z.ZodNumber;
3250
+ }, z.core.$strict>;
3251
+ environmentRelease: z.ZodOptional<z.ZodObject<{
3252
+ id: z.ZodString;
3253
+ contentHash: z.ZodString;
3254
+ }, z.core.$strict>>;
3255
+ tools: z.ZodArray<z.ZodObject<{
3256
+ name: z.ZodString;
3257
+ description: z.ZodString;
3258
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3259
+ inputSchemaHash: z.ZodString;
3260
+ sideEffect: z.ZodEnum<{
3261
+ read: "read";
3262
+ write: "write";
3263
+ }>;
3264
+ timeoutMs: z.ZodNumber;
3265
+ }, z.core.$strict>>;
3266
+ capabilities: z.ZodArray<z.ZodObject<{
3267
+ id: z.ZodString;
3268
+ required: z.ZodBoolean;
3269
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3270
+ portability: z.ZodEnum<{
3271
+ host_adapter: "host_adapter";
3272
+ hosted_only: "hosted_only";
3273
+ local_only: "local_only";
3274
+ portable: "portable";
3275
+ }>;
3276
+ }, z.core.$strict>>;
3277
+ tasks: z.ZodArray<z.ZodObject<{
3278
+ id: z.ZodString;
3279
+ clusterKey: z.ZodString;
3280
+ split: z.ZodEnum<{
3281
+ frozen_eval: "frozen_eval";
3282
+ test: "test";
3283
+ train: "train";
3284
+ validation: "validation";
3285
+ }>;
3286
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3287
+ expectedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3288
+ policyVisibleContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3289
+ privilegedContextRef: z.ZodNullable<z.ZodString>;
3290
+ artifactRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3291
+ id: z.ZodString;
3263
3292
  path: z.ZodString;
3264
3293
  contentHash: z.ZodString;
3265
3294
  sizeBytes: z.ZodNumber;
@@ -3495,6 +3524,101 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
3495
3524
  }, z.core.$strict>>;
3496
3525
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3497
3526
  contentHash: z.ZodString;
3527
+ }, z.core.$strict> | z.ZodObject<{
3528
+ schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
3529
+ id: z.ZodString;
3530
+ revision: z.ZodLiteral<1>;
3531
+ asset: z.ZodObject<{
3532
+ id: z.ZodString;
3533
+ path: z.ZodString;
3534
+ contentHash: z.ZodString;
3535
+ sizeBytes: z.ZodNumber;
3536
+ mediaType: z.ZodString;
3537
+ visibility: z.ZodEnum<{
3538
+ host_private: "host_private";
3539
+ policy: "policy";
3540
+ verifier: "verifier";
3541
+ }>;
3542
+ }, z.core.$strict>;
3543
+ text: z.ZodString;
3544
+ contentHash: z.ZodString;
3545
+ }, z.core.$strict> | z.ZodObject<{
3546
+ schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
3547
+ id: z.ZodString;
3548
+ revision: z.ZodNumber;
3549
+ source: z.ZodObject<{
3550
+ id: z.ZodString;
3551
+ contentHash: z.ZodString;
3552
+ revision: z.ZodNumber;
3553
+ }, z.core.$strict>;
3554
+ submission: z.ZodObject<{
3555
+ schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
3556
+ sourceId: z.ZodString;
3557
+ idempotencyKey: z.ZodString;
3558
+ taskDefinition: z.ZodObject<{
3559
+ id: z.ZodString;
3560
+ contentHash: z.ZodString;
3561
+ revision: z.ZodNumber;
3562
+ }, z.core.$strict>;
3563
+ exampleId: z.ZodString;
3564
+ attemptId: z.ZodString;
3565
+ occurredAt: z.ZodString;
3566
+ familyKey: z.ZodNullable<z.ZodString>;
3567
+ split: z.ZodEnum<{
3568
+ frozen_eval: "frozen_eval";
3569
+ test: "test";
3570
+ train: "train";
3571
+ validation: "validation";
3572
+ }>;
3573
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3574
+ policyVisibleContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3575
+ observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3576
+ expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3577
+ evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3578
+ assets: z.ZodArray<z.ZodObject<{
3579
+ id: z.ZodString;
3580
+ path: z.ZodString;
3581
+ contentHash: z.ZodString;
3582
+ sizeBytes: z.ZodNumber;
3583
+ mediaType: z.ZodString;
3584
+ visibility: z.ZodEnum<{
3585
+ host_private: "host_private";
3586
+ policy: "policy";
3587
+ verifier: "verifier";
3588
+ }>;
3589
+ }, z.core.$strict>>;
3590
+ requiredOutputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3591
+ path: z.ZodString;
3592
+ mediaType: z.ZodString;
3593
+ schemaRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3594
+ id: z.ZodString;
3595
+ path: z.ZodString;
3596
+ contentHash: z.ZodString;
3597
+ sizeBytes: z.ZodNumber;
3598
+ mediaType: z.ZodString;
3599
+ visibility: z.ZodEnum<{
3600
+ host_private: "host_private";
3601
+ policy: "policy";
3602
+ verifier: "verifier";
3603
+ }>;
3604
+ }, z.core.$strict>>>;
3605
+ submissionMode: z.ZodOptional<z.ZodLiteral<"structured_json">>;
3606
+ maxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3607
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3608
+ }, z.core.$strict>>>;
3609
+ provenance: z.ZodObject<{
3610
+ sourceRecordRef: z.ZodNullable<z.ZodString>;
3611
+ mappingHash: z.ZodNullable<z.ZodString>;
3612
+ }, z.core.$strict>;
3613
+ }, z.core.$strict>;
3614
+ supersedes: z.ZodNullable<z.ZodObject<{
3615
+ id: z.ZodString;
3616
+ contentHash: z.ZodString;
3617
+ revision: z.ZodNumber;
3618
+ }, z.core.$strict>>;
3619
+ correctionFeedbackId: z.ZodNullable<z.ZodString>;
3620
+ receivedAt: z.ZodString;
3621
+ contentHash: z.ZodString;
3498
3622
  }, z.core.$strict> | z.ZodObject<{
3499
3623
  schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
3500
3624
  id: z.ZodString;
@@ -3666,93 +3790,26 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
3666
3790
  revision: z.ZodNumber;
3667
3791
  }, z.core.$strict>;
3668
3792
  }, z.core.$strict>>;
3669
- capturedOrigin: z.ZodOptional<z.ZodObject<{
3793
+ datasetOrigin: z.ZodOptional<z.ZodObject<{
3670
3794
  receiptId: z.ZodString;
3671
- ownerUserId: z.ZodString;
3672
- modelId: z.ZodString;
3673
3795
  packageHash: z.ZodString;
3674
3796
  taskset: z.ZodObject<{
3675
3797
  id: z.ZodString;
3676
- contentHash: z.ZodString;
3677
- revision: z.ZodNumber;
3678
- }, z.core.$strict>;
3679
- }, z.core.$strict>>;
3680
- contentHash: z.ZodString;
3681
- }, z.core.$strict> | z.ZodObject<{
3682
- schemaVersion: z.ZodLiteral<"openpond.taskEvidence.v1">;
3683
- id: z.ZodString;
3684
- revision: z.ZodNumber;
3685
- source: z.ZodObject<{
3686
- id: z.ZodString;
3687
- contentHash: z.ZodString;
3688
- revision: z.ZodNumber;
3689
- }, z.core.$strict>;
3690
- submission: z.ZodObject<{
3691
- schemaVersion: z.ZodLiteral<"openpond.taskExample.v1">;
3692
- sourceId: z.ZodString;
3693
- idempotencyKey: z.ZodString;
3694
- taskDefinition: z.ZodObject<{
3695
- id: z.ZodString;
3696
- contentHash: z.ZodString;
3697
- revision: z.ZodNumber;
3698
- }, z.core.$strict>;
3699
- exampleId: z.ZodString;
3700
- attemptId: z.ZodString;
3701
- occurredAt: z.ZodString;
3702
- familyKey: z.ZodNullable<z.ZodString>;
3703
- split: z.ZodEnum<{
3704
- frozen_eval: "frozen_eval";
3705
- test: "test";
3706
- train: "train";
3707
- validation: "validation";
3708
- }>;
3709
- input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3710
- observedOutput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3711
- expected: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3712
- evaluatorContext: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3713
- assets: z.ZodArray<z.ZodObject<{
3714
- id: z.ZodString;
3715
- path: z.ZodString;
3716
- contentHash: z.ZodString;
3717
- sizeBytes: z.ZodNumber;
3718
- mediaType: z.ZodString;
3719
- visibility: z.ZodEnum<{
3720
- host_private: "host_private";
3721
- policy: "policy";
3722
- verifier: "verifier";
3723
- }>;
3724
- }, z.core.$strict>>;
3725
- requiredOutputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3726
- path: z.ZodString;
3727
- mediaType: z.ZodString;
3728
- schemaRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3729
- id: z.ZodString;
3730
- path: z.ZodString;
3731
- contentHash: z.ZodString;
3732
- sizeBytes: z.ZodNumber;
3733
- mediaType: z.ZodString;
3734
- visibility: z.ZodEnum<{
3735
- host_private: "host_private";
3736
- policy: "policy";
3737
- verifier: "verifier";
3738
- }>;
3739
- }, z.core.$strict>>>;
3740
- submissionMode: z.ZodOptional<z.ZodLiteral<"structured_json">>;
3741
- maxBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3742
- metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3743
- }, z.core.$strict>>>;
3744
- provenance: z.ZodObject<{
3745
- sourceRecordRef: z.ZodNullable<z.ZodString>;
3746
- mappingHash: z.ZodNullable<z.ZodString>;
3798
+ contentHash: z.ZodString;
3799
+ revision: z.ZodNumber;
3800
+ }, z.core.$strict>;
3801
+ }, z.core.$strict>>;
3802
+ capturedOrigin: z.ZodOptional<z.ZodObject<{
3803
+ receiptId: z.ZodString;
3804
+ ownerUserId: z.ZodString;
3805
+ modelId: z.ZodString;
3806
+ packageHash: z.ZodString;
3807
+ taskset: z.ZodObject<{
3808
+ id: z.ZodString;
3809
+ contentHash: z.ZodString;
3810
+ revision: z.ZodNumber;
3747
3811
  }, z.core.$strict>;
3748
- }, z.core.$strict>;
3749
- supersedes: z.ZodNullable<z.ZodObject<{
3750
- id: z.ZodString;
3751
- contentHash: z.ZodString;
3752
- revision: z.ZodNumber;
3753
3812
  }, z.core.$strict>>;
3754
- correctionFeedbackId: z.ZodNullable<z.ZodString>;
3755
- receivedAt: z.ZodString;
3756
3813
  contentHash: z.ZodString;
3757
3814
  }, z.core.$strict> | z.ZodObject<{
3758
3815
  schemaVersion: z.ZodLiteral<"openpond.taskAdmissionDecision.v1">;
@@ -3952,335 +4009,84 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
3952
4009
  status: z.ZodOptional<z.ZodEnum<{
3953
4010
  failed: "failed";
3954
4011
  pending: "pending";
3955
- scored: "scored";
3956
- unavailable: "unavailable";
3957
- }>>;
3958
- score: z.ZodNullable<z.ZodNumber>;
3959
- passed: z.ZodBoolean;
3960
- rewardEligible: z.ZodBoolean;
3961
- failureClass: z.ZodNullable<z.ZodEnum<{
3962
- cancelled: "cancelled";
3963
- environment_failure: "environment_failure";
3964
- grader_failure: "grader_failure";
3965
- infrastructure_failure: "infrastructure_failure";
3966
- policy_failure: "policy_failure";
3967
- timeout: "timeout";
3968
- }>>;
3969
- feedback: z.ZodArray<z.ZodString>;
3970
- visibleEvidenceRefs: z.ZodArray<z.ZodString>;
3971
- privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
3972
- modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
3973
- schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
3974
- providerId: z.ZodString;
3975
- modelId: z.ZodString;
3976
- modelRevision: z.ZodNullable<z.ZodString>;
3977
- responseId: z.ZodNullable<z.ZodString>;
3978
- requestHash: z.ZodString;
3979
- responseHash: z.ZodString;
3980
- inputTokens: z.ZodNullable<z.ZodNumber>;
3981
- outputTokens: z.ZodNullable<z.ZodNumber>;
3982
- costUsd: z.ZodNullable<z.ZodNumber>;
3983
- transportPolicy: z.ZodOptional<z.ZodObject<{
3984
- schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
3985
- responseFormat: z.ZodLiteral<"judgment_json_schema">;
3986
- reasoningEffort: z.ZodEnum<{
3987
- high: "high";
3988
- low: "low";
3989
- max: "max";
3990
- medium: "medium";
3991
- off: "off";
3992
- xhigh: "xhigh";
3993
- }>;
3994
- maximumOutputTokens: z.ZodNumber;
3995
- }, z.core.$strict>>;
3996
- effectiveRequestHash: z.ZodOptional<z.ZodString>;
3997
- finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3998
- reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3999
- }, z.core.$strict>>;
4000
- contentHash: z.ZodString;
4001
- }, z.core.$strict>>;
4002
- message: z.ZodNullable<z.ZodString>;
4003
- }, z.core.$strict>>;
4004
- training: z.ZodObject<{
4005
- status: z.ZodEnum<{
4006
- not_configured: "not_configured";
4007
- pending: "pending";
4008
- scored: "scored";
4009
- unscorable: "unscorable";
4010
- }>;
4011
- score: z.ZodNullable<z.ZodNumber>;
4012
- passed: z.ZodNullable<z.ZodBoolean>;
4013
- }, z.core.$strict>;
4014
- evaluation: z.ZodObject<{
4015
- status: z.ZodEnum<{
4016
- not_configured: "not_configured";
4017
- pending: "pending";
4018
- scored: "scored";
4019
- unscorable: "unscorable";
4020
- }>;
4021
- score: z.ZodNullable<z.ZodNumber>;
4022
- passed: z.ZodNullable<z.ZodBoolean>;
4023
- }, z.core.$strict>;
4024
- contentHash: z.ZodString;
4025
- }, z.core.$strict>>;
4026
- note: z.ZodString;
4027
- decidedAt: z.ZodString;
4028
- contentHash: z.ZodString;
4029
- }, z.core.$strict> | z.ZodObject<{
4030
- schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
4031
- id: z.ZodString;
4032
- revision: z.ZodLiteral<1>;
4033
- taskDefinition: z.ZodObject<{
4034
- id: z.ZodString;
4035
- contentHash: z.ZodString;
4036
- revision: z.ZodNumber;
4037
- }, z.core.$strict>;
4038
- rewardBinding: z.ZodObject<{
4039
- id: z.ZodString;
4040
- contentHash: z.ZodString;
4041
- revision: z.ZodNumber;
4042
- }, z.core.$strict>;
4043
- purpose: z.ZodEnum<{
4044
- evaluation: "evaluation";
4045
- reward_training: "reward_training";
4046
- supervised_training: "supervised_training";
4047
- }>;
4048
- examples: z.ZodArray<z.ZodObject<{
4049
- evidence: z.ZodObject<{
4050
- id: z.ZodString;
4051
- contentHash: z.ZodString;
4052
- revision: z.ZodNumber;
4053
- }, z.core.$strict>;
4054
- decision: z.ZodObject<{
4055
- id: z.ZodString;
4056
- contentHash: z.ZodString;
4057
- revision: z.ZodNumber;
4058
- }, z.core.$strict>;
4059
- familyKey: z.ZodString;
4060
- inputHash: z.ZodString;
4061
- split: z.ZodEnum<{
4062
- frozen_eval: "frozen_eval";
4063
- test: "test";
4064
- train: "train";
4065
- validation: "validation";
4066
- }>;
4067
- }, z.core.$strict>>;
4068
- sealedAt: z.ZodString;
4069
- sealedBy: z.ZodString;
4070
- contentHash: z.ZodString;
4071
- }, z.core.$strict> | z.ZodObject<{
4072
- origin: z.ZodOptional<z.ZodObject<{
4073
- schemaVersion: z.ZodLiteral<"openpond.trainingHandoffOrigin.v1">;
4074
- teamId: z.ZodString;
4075
- projectId: z.ZodNullable<z.ZodString>;
4076
- configurationId: z.ZodString;
4077
- source: z.ZodObject<{
4078
- executionId: z.ZodString;
4079
- passId: z.ZodNullable<z.ZodString>;
4080
- manifestHash: z.ZodString;
4081
- resultHash: z.ZodString;
4082
- }, z.core.$strict>;
4083
- dataset: z.ZodObject<{
4084
- id: z.ZodString;
4085
- revision: z.ZodNumber;
4086
- contentHash: z.ZodString;
4087
- }, z.core.$strict>;
4088
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4089
- kind: z.ZodLiteral<"model">;
4090
- modelId: z.ZodString;
4091
- configurationHash: z.ZodString;
4092
- }, z.core.$strict>, z.ZodObject<{
4093
- kind: z.ZodLiteral<"harness">;
4094
- source: z.ZodObject<{
4095
- profileId: z.ZodString;
4096
- sourceRevision: z.ZodString;
4097
- harnessRelease: z.ZodObject<{
4098
- id: z.ZodString;
4099
- contentHash: z.ZodString;
4100
- }, z.core.$strict>;
4101
- catalogHash: z.ZodString;
4102
- definitionId: z.ZodString;
4103
- definitionHash: z.ZodString;
4104
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4105
- kind: z.ZodLiteral<"profile">;
4106
- }, z.core.$strict>, z.ZodObject<{
4107
- kind: z.ZodLiteral<"workflow">;
4108
- workflowId: z.ZodString;
4109
- }, z.core.$strict>, z.ZodObject<{
4110
- kind: z.ZodLiteral<"skill">;
4111
- skillPath: z.ZodString;
4112
- }, z.core.$strict>, z.ZodObject<{
4113
- kind: z.ZodLiteral<"agent_action">;
4114
- actionId: z.ZodString;
4115
- }, z.core.$strict>], "kind">;
4116
- environmentHash: z.ZodString;
4117
- externalDatasetBinding: z.ZodOptional<z.ZodObject<{
4118
- schemaVersion: z.ZodLiteral<"openpond.profileExternalDatasetBinding.v1">;
4119
- dataset: z.ZodObject<{
4120
- id: z.ZodString;
4121
- contentHash: z.ZodString;
4122
- revision: z.ZodNumber;
4123
- }, z.core.$strict>;
4124
- packageHash: z.ZodString;
4125
- profileId: z.ZodString;
4126
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4127
- kind: z.ZodLiteral<"profile">;
4128
- }, z.core.$strict>, z.ZodObject<{
4129
- kind: z.ZodLiteral<"workflow">;
4130
- workflowId: z.ZodString;
4131
- }, z.core.$strict>, z.ZodObject<{
4132
- kind: z.ZodLiteral<"skill">;
4133
- skillPath: z.ZodString;
4134
- }, z.core.$strict>, z.ZodObject<{
4135
- kind: z.ZodLiteral<"agent_action">;
4136
- actionId: z.ZodString;
4137
- }, z.core.$strict>], "kind">;
4138
- declaredProfileCatalogHash: z.ZodNullable<z.ZodString>;
4139
- protectedProfileClosureHash: z.ZodString;
4140
- recordedOrigin: z.ZodOptional<z.ZodObject<{
4141
- execution: z.ZodObject<{
4142
- id: z.ZodString;
4143
- contentHash: z.ZodString;
4144
- }, z.core.$strict>;
4145
- originalEvidence: z.ZodObject<{
4146
- id: z.ZodString;
4147
- contentHash: z.ZodString;
4148
- }, z.core.$strict>;
4149
- members: z.ZodArray<z.ZodObject<{
4150
- caseId: z.ZodString;
4151
- seed: z.ZodString;
4152
- fixtureId: z.ZodString;
4153
- sourceId: z.ZodString;
4154
- snapshotHash: z.ZodString;
4155
- boundaryRevisionHash: z.ZodString;
4156
- }, z.core.$strict>>;
4157
- }, z.core.$strict>>;
4158
- gradingSource: z.ZodOptional<z.ZodObject<{
4159
- pass: z.ZodObject<{
4160
- id: z.ZodString;
4161
- contentHash: z.ZodString;
4162
- }, z.core.$strict>;
4163
- evidence: z.ZodObject<{
4164
- id: z.ZodString;
4165
- contentHash: z.ZodString;
4166
- }, z.core.$strict>;
4167
- }, z.core.$strict>>;
4168
- split: z.ZodEnum<{
4169
- frozen_eval: "frozen_eval";
4170
- test: "test";
4171
- train: "train";
4172
- validation: "validation";
4173
- }>;
4174
- population: z.ZodArray<z.ZodObject<{
4175
- taskId: z.ZodString;
4176
- seed: z.ZodString;
4177
- fixtureId: z.ZodNullable<z.ZodString>;
4178
- }, z.core.$strict>>;
4179
- evaluators: z.ZodArray<z.ZodObject<{
4180
- release: z.ZodObject<{
4181
- id: z.ZodString;
4182
- contentHash: z.ZodString;
4183
- revision: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
4184
- }, z.core.$strict>;
4185
- feedbackKey: z.ZodString;
4186
- configurationHash: z.ZodString;
4187
- output: z.ZodEnum<{
4188
- boolean: "boolean";
4189
- category: "category";
4190
- score: "score";
4012
+ scored: "scored";
4013
+ unavailable: "unavailable";
4014
+ }>>;
4015
+ score: z.ZodNullable<z.ZodNumber>;
4016
+ passed: z.ZodBoolean;
4017
+ rewardEligible: z.ZodBoolean;
4018
+ failureClass: z.ZodNullable<z.ZodEnum<{
4019
+ cancelled: "cancelled";
4020
+ environment_failure: "environment_failure";
4021
+ grader_failure: "grader_failure";
4022
+ infrastructure_failure: "infrastructure_failure";
4023
+ policy_failure: "policy_failure";
4024
+ timeout: "timeout";
4025
+ }>>;
4026
+ feedback: z.ZodArray<z.ZodString>;
4027
+ visibleEvidenceRefs: z.ZodArray<z.ZodString>;
4028
+ privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
4029
+ modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
4030
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
4031
+ providerId: z.ZodString;
4032
+ modelId: z.ZodString;
4033
+ modelRevision: z.ZodNullable<z.ZodString>;
4034
+ responseId: z.ZodNullable<z.ZodString>;
4035
+ requestHash: z.ZodString;
4036
+ responseHash: z.ZodString;
4037
+ inputTokens: z.ZodNullable<z.ZodNumber>;
4038
+ outputTokens: z.ZodNullable<z.ZodNumber>;
4039
+ costUsd: z.ZodNullable<z.ZodNumber>;
4040
+ transportPolicy: z.ZodOptional<z.ZodObject<{
4041
+ schemaVersion: z.ZodLiteral<"openpond.modelJudgeTransportPolicy.v1">;
4042
+ responseFormat: z.ZodLiteral<"judgment_json_schema">;
4043
+ reasoningEffort: z.ZodEnum<{
4044
+ high: "high";
4045
+ low: "low";
4046
+ max: "max";
4047
+ medium: "medium";
4048
+ off: "off";
4049
+ xhigh: "xhigh";
4191
4050
  }>;
4192
- categories: z.ZodArray<z.ZodString>;
4193
- }, z.core.$strict>>;
4194
- fieldMappingsHash: z.ZodString;
4195
- fieldMappings: z.ZodArray<z.ZodObject<{
4196
- graderId: z.ZodString;
4197
- fields: z.ZodArray<z.ZodObject<{
4198
- destination: z.ZodEnum<{
4199
- evaluatorContext: "evaluatorContext";
4200
- expectedOutput: "expectedOutput";
4201
- input: "input";
4202
- output: "output";
4203
- }>;
4204
- path: z.ZodArray<z.ZodString>;
4205
- source: z.ZodEnum<{
4206
- evaluatorContext: "evaluatorContext";
4207
- expectedOutput: "expectedOutput";
4208
- input: "input";
4209
- output: "output";
4210
- }>;
4211
- sourcePath: z.ZodArray<z.ZodString>;
4212
- }, z.core.$strict>>;
4051
+ maximumOutputTokens: z.ZodNumber;
4213
4052
  }, z.core.$strict>>;
4214
- environmentHash: z.ZodString;
4215
- privateDatasetClosureHash: z.ZodString;
4216
- criterion: z.ZodObject<{
4217
- minimumPassRate: z.ZodNumber;
4218
- requireComplete: z.ZodBoolean;
4219
- }, z.core.$strict>;
4220
- contentHash: z.ZodString;
4221
- }, z.core.$strict>>;
4222
- sourceCandidate: z.ZodOptional<z.ZodObject<{
4223
- candidateId: z.ZodString;
4224
- frozenRevision: z.ZodNumber;
4225
- frozenHash: z.ZodString;
4226
- harnessRelease: z.ZodObject<{
4227
- id: z.ZodString;
4228
- contentHash: z.ZodString;
4229
- }, z.core.$strict>;
4230
- protectedClosureHash: z.ZodString;
4053
+ effectiveRequestHash: z.ZodOptional<z.ZodString>;
4054
+ finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4055
+ reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4231
4056
  }, z.core.$strict>>;
4232
- }, z.core.$strict>;
4233
- model: z.ZodObject<{
4234
- modelId: z.ZodString;
4235
- configurationHash: z.ZodString;
4236
- }, z.core.$strict>;
4237
- }, z.core.$strict>, z.ZodObject<{
4238
- kind: z.ZodLiteral<"agent">;
4239
- source: z.ZodObject<{
4240
- harnessRelease: z.ZodObject<{
4241
- id: z.ZodString;
4242
- contentHash: z.ZodString;
4243
- }, z.core.$strict>;
4244
- agentSnapshot: z.ZodObject<{
4245
- id: z.ZodString;
4246
- contentHash: z.ZodString;
4247
- }, z.core.$strict>;
4248
- sourcePackageHash: z.ZodString;
4249
- }, z.core.$strict>;
4250
- model: z.ZodObject<{
4251
- modelId: z.ZodString;
4252
- configurationHash: z.ZodString;
4253
- }, z.core.$strict>;
4254
- }, z.core.$strict>, z.ZodObject<{
4255
- kind: z.ZodLiteral<"fixture">;
4256
- configurationHash: z.ZodString;
4257
- }, z.core.$strict>], "kind">;
4258
- graders: z.ZodArray<z.ZodObject<{
4259
- feedbackKey: z.ZodString;
4260
- evaluator: z.ZodObject<{
4261
- id: z.ZodString;
4262
4057
  contentHash: z.ZodString;
4263
- }, z.core.$strict>;
4264
- expectedCount: z.ZodNumber;
4265
- scoredCount: z.ZodNumber;
4266
- score: z.ZodNullable<z.ZodNumber>;
4058
+ }, z.core.$strict>>;
4059
+ message: z.ZodNullable<z.ZodString>;
4267
4060
  }, z.core.$strict>>;
4061
+ training: z.ZodObject<{
4062
+ status: z.ZodEnum<{
4063
+ not_configured: "not_configured";
4064
+ pending: "pending";
4065
+ scored: "scored";
4066
+ unscorable: "unscorable";
4067
+ }>;
4068
+ score: z.ZodNullable<z.ZodNumber>;
4069
+ passed: z.ZodNullable<z.ZodBoolean>;
4070
+ }, z.core.$strict>;
4071
+ evaluation: z.ZodObject<{
4072
+ status: z.ZodEnum<{
4073
+ not_configured: "not_configured";
4074
+ pending: "pending";
4075
+ scored: "scored";
4076
+ unscorable: "unscorable";
4077
+ }>;
4078
+ score: z.ZodNullable<z.ZodNumber>;
4079
+ passed: z.ZodNullable<z.ZodBoolean>;
4080
+ }, z.core.$strict>;
4268
4081
  contentHash: z.ZodString;
4269
4082
  }, z.core.$strict>>;
4270
- schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
4083
+ note: z.ZodString;
4084
+ decidedAt: z.ZodString;
4085
+ contentHash: z.ZodString;
4086
+ }, z.core.$strict> | z.ZodObject<{
4087
+ schemaVersion: z.ZodLiteral<"openpond.taskBatch.v1">;
4271
4088
  id: z.ZodString;
4272
- revision: z.ZodNumber;
4273
- modelProjectId: z.ZodString;
4274
- executionOwner: z.ZodEnum<{
4275
- hosted: "hosted";
4276
- local: "local";
4277
- }>;
4278
- enabled: z.ZodBoolean;
4279
- sources: z.ZodArray<z.ZodObject<{
4280
- id: z.ZodString;
4281
- contentHash: z.ZodString;
4282
- revision: z.ZodNumber;
4283
- }, z.core.$strict>>;
4089
+ revision: z.ZodLiteral<1>;
4284
4090
  taskDefinition: z.ZodObject<{
4285
4091
  id: z.ZodString;
4286
4092
  contentHash: z.ZodString;
@@ -4291,99 +4097,79 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
4291
4097
  contentHash: z.ZodString;
4292
4098
  revision: z.ZodNumber;
4293
4099
  }, z.core.$strict>;
4294
- admission: z.ZodObject<{
4295
- mode: z.ZodEnum<{
4296
- human: "human";
4297
- qualified_automatic: "qualified_automatic";
4298
- }>;
4299
- qualification: z.ZodNullable<z.ZodObject<{
4300
- id: z.ZodString;
4301
- contentHash: z.ZodString;
4302
- }, z.core.$strict>>;
4303
- minimumApprovedExamples: z.ZodNumber;
4304
- }, z.core.$strict>;
4305
- trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
4306
- kind: z.ZodLiteral<"manual">;
4307
- }, z.core.$strict>, z.ZodObject<{
4308
- kind: z.ZodLiteral<"approved_count">;
4309
- }, z.core.$strict>, z.ZodObject<{
4310
- kind: z.ZodLiteral<"schedule">;
4311
- intervalSeconds: z.ZodNumber;
4312
- }, z.core.$strict>, z.ZodObject<{
4313
- localTime: z.ZodString;
4314
- timeZone: z.ZodString;
4315
- kind: z.ZodLiteral<"nightly">;
4316
- }, z.core.$strict>, z.ZodObject<{
4317
- kind: z.ZodLiteral<"upstream_accepted">;
4318
- modelProjectId: z.ZodString;
4319
- }, z.core.$strict>], "kind">;
4320
- trainingParent: z.ZodObject<{
4321
- id: z.ZodString;
4322
- contentHash: z.ZodString;
4323
- }, z.core.$strict>;
4324
- teacher: z.ZodNullable<z.ZodObject<{
4325
- id: z.ZodString;
4326
- contentHash: z.ZodString;
4327
- }, z.core.$strict>>;
4328
- training: z.ZodObject<{
4329
- method: z.ZodEnum<{
4330
- dpo: "dpo";
4331
- grpo: "grpo";
4332
- opd: "opd";
4333
- opsd: "opsd";
4334
- ppo: "ppo";
4335
- sdft: "sdft";
4336
- sdpo: "sdpo";
4337
- sft: "sft";
4338
- }>;
4339
- recipe: z.ZodObject<{
4100
+ purpose: z.ZodEnum<{
4101
+ evaluation: "evaluation";
4102
+ reward_training: "reward_training";
4103
+ supervised_training: "supervised_training";
4104
+ }>;
4105
+ examples: z.ZodArray<z.ZodObject<{
4106
+ evidence: z.ZodObject<{
4340
4107
  id: z.ZodString;
4341
4108
  contentHash: z.ZodString;
4109
+ revision: z.ZodNumber;
4342
4110
  }, z.core.$strict>;
4343
- retentionEvaluation: z.ZodObject<{
4111
+ decision: z.ZodObject<{
4344
4112
  id: z.ZodString;
4345
4113
  contentHash: z.ZodString;
4114
+ revision: z.ZodNumber;
4346
4115
  }, z.core.$strict>;
4347
- replayBatches: z.ZodArray<z.ZodObject<{
4116
+ familyKey: z.ZodString;
4117
+ inputHash: z.ZodString;
4118
+ split: z.ZodEnum<{
4119
+ frozen_eval: "frozen_eval";
4120
+ test: "test";
4121
+ train: "train";
4122
+ validation: "validation";
4123
+ }>;
4124
+ }, z.core.$strict>>;
4125
+ sealedAt: z.ZodString;
4126
+ sealedBy: z.ZodString;
4127
+ contentHash: z.ZodString;
4128
+ }, z.core.$strict> | z.ZodObject<{
4129
+ schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
4130
+ id: z.ZodString;
4131
+ revision: z.ZodNumber;
4132
+ name: z.ZodOptional<z.ZodString>;
4133
+ description: z.ZodOptional<z.ZodString>;
4134
+ recipeRef: z.ZodOptional<z.ZodObject<{
4135
+ id: z.ZodString;
4136
+ contentHash: z.ZodString;
4137
+ revision: z.ZodNumber;
4138
+ }, z.core.$strict>>;
4139
+ sources: z.ZodArray<z.ZodObject<{
4140
+ graderId: z.ZodString;
4141
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4142
+ reward: z.ZodObject<{
4348
4143
  id: z.ZodString;
4349
4144
  contentHash: z.ZodString;
4350
- }, z.core.$strict>>;
4351
- continuationMode: z.ZodOptional<z.ZodObject<{
4352
- adapterMode: z.ZodEnum<{
4353
- residual_append: "residual_append";
4354
- sequential_merge: "sequential_merge";
4355
- shared: "shared";
4145
+ revision: z.ZodNumber;
4146
+ }, z.core.$strict>;
4147
+ role: z.ZodEnum<{
4148
+ evaluation: "evaluation";
4149
+ training: "training";
4150
+ }>;
4151
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
4152
+ kind: z.ZodLiteral<"identity">;
4153
+ }, z.core.$strict>, z.ZodObject<{
4154
+ kind: z.ZodLiteral<"linear">;
4155
+ minimum: z.ZodNumber;
4156
+ maximum: z.ZodNumber;
4157
+ direction: z.ZodEnum<{
4158
+ higher: "higher";
4159
+ lower: "lower";
4356
4160
  }>;
4357
- sourceConfiguration: z.ZodObject<{
4358
- id: z.ZodString;
4359
- revision: z.ZodNumber;
4360
- etag: z.ZodString;
4361
- }, z.core.$strict>;
4362
- }, z.core.$strict>>;
4363
- }, z.core.$strict>;
4364
- limits: z.ZodObject<{
4365
- maxIterationSpendUsd: z.ZodNumber;
4366
- maxDailySpendUsd: z.ZodNumber;
4367
- cooldownSeconds: z.ZodNumber;
4368
- maxRetries: z.ZodNumber;
4369
- maxBatchExamples: z.ZodNumber;
4370
- maxBacklogExamples: z.ZodNumber;
4371
- }, z.core.$strict>;
4372
- automation: z.ZodObject<{
4373
- collect: z.ZodBoolean;
4374
- train: z.ZodBoolean;
4375
- accept: z.ZodBoolean;
4376
- serve: z.ZodBoolean;
4377
- }, z.core.$strict>;
4378
- acceptance: z.ZodObject<{
4379
- minimumScore: z.ZodNumber;
4380
- maximumRetentionRegression: z.ZodNumber;
4381
- requireImprovement: z.ZodBoolean;
4382
- rollbackVersion: z.ZodNullable<z.ZodObject<{
4161
+ }, z.core.$strict>], "kind">;
4162
+ weight: z.ZodNumber;
4163
+ required: z.ZodBoolean;
4164
+ hardGate: z.ZodBoolean;
4165
+ privileged: z.ZodBoolean;
4166
+ fixtureRefs: z.ZodArray<z.ZodObject<{
4383
4167
  id: z.ZodString;
4384
4168
  contentHash: z.ZodString;
4385
4169
  }, z.core.$strict>>;
4386
- }, z.core.$strict>;
4170
+ }, z.core.$strict>>;
4171
+ aggregation: z.ZodLiteral<"weighted_mean">;
4172
+ unscorable: z.ZodLiteral<"exclude_optional_require_all_required">;
4387
4173
  contentHash: z.ZodString;
4388
4174
  }, z.core.$strict> | z.ZodObject<{
4389
4175
  schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
@@ -4525,136 +4311,389 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
4525
4311
  maximumLength: z.ZodNumber;
4526
4312
  }, z.core.$strict>, z.ZodObject<{
4527
4313
  id: z.ZodString;
4528
- label: z.ZodString;
4529
- instructions: z.ZodString;
4530
- required: z.ZodBoolean;
4531
- allowAbstain: z.ZodBoolean;
4532
- requireRationale: z.ZodOptional<z.ZodBoolean>;
4533
- anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4534
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
4535
- description: z.ZodString;
4536
- }, z.core.$strict>>>;
4537
- kind: z.ZodLiteral<"preference">;
4538
- requireStrength: z.ZodOptional<z.ZodBoolean>;
4539
- allowTie: z.ZodBoolean;
4540
- }, z.core.$strict>], "kind">>;
4314
+ label: z.ZodString;
4315
+ instructions: z.ZodString;
4316
+ required: z.ZodBoolean;
4317
+ allowAbstain: z.ZodBoolean;
4318
+ requireRationale: z.ZodOptional<z.ZodBoolean>;
4319
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4320
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>;
4321
+ description: z.ZodString;
4322
+ }, z.core.$strict>>>;
4323
+ kind: z.ZodLiteral<"preference">;
4324
+ requireStrength: z.ZodOptional<z.ZodBoolean>;
4325
+ allowTie: z.ZodBoolean;
4326
+ }, z.core.$strict>], "kind">>;
4327
+ }, z.core.$strict>>;
4328
+ }, z.core.$strict>, z.ZodObject<{
4329
+ kind: z.ZodLiteral<"learned_model">;
4330
+ modelVersion: z.ZodObject<{
4331
+ id: z.ZodString;
4332
+ contentHash: z.ZodString;
4333
+ }, z.core.$strict>;
4334
+ inputContract: z.ZodObject<{
4335
+ id: z.ZodString;
4336
+ path: z.ZodString;
4337
+ contentHash: z.ZodString;
4338
+ sizeBytes: z.ZodNumber;
4339
+ mediaType: z.ZodString;
4340
+ visibility: z.ZodEnum<{
4341
+ host_private: "host_private";
4342
+ policy: "policy";
4343
+ verifier: "verifier";
4344
+ }>;
4345
+ }, z.core.$strict>;
4346
+ }, z.core.$strict>]>;
4347
+ rawScore: z.ZodObject<{
4348
+ minimum: z.ZodNumber;
4349
+ maximum: z.ZodNumber;
4350
+ }, z.core.$strict>;
4351
+ assets: z.ZodArray<z.ZodObject<{
4352
+ id: z.ZodString;
4353
+ path: z.ZodString;
4354
+ contentHash: z.ZodString;
4355
+ sizeBytes: z.ZodNumber;
4356
+ mediaType: z.ZodString;
4357
+ visibility: z.ZodEnum<{
4358
+ host_private: "host_private";
4359
+ policy: "policy";
4360
+ verifier: "verifier";
4361
+ }>;
4362
+ }, z.core.$strict>>;
4363
+ fixtureSetRef: z.ZodOptional<z.ZodObject<{
4364
+ id: z.ZodString;
4365
+ path: z.ZodString;
4366
+ contentHash: z.ZodString;
4367
+ sizeBytes: z.ZodNumber;
4368
+ mediaType: z.ZodString;
4369
+ visibility: z.ZodEnum<{
4370
+ host_private: "host_private";
4371
+ policy: "policy";
4372
+ verifier: "verifier";
4373
+ }>;
4374
+ }, z.core.$strict>>;
4375
+ calibrationCheckRef: z.ZodOptional<z.ZodObject<{
4376
+ id: z.ZodString;
4377
+ contentHash: z.ZodString;
4378
+ revision: z.ZodNumber;
4379
+ }, z.core.$strict>>;
4380
+ contentHash: z.ZodString;
4381
+ }, z.core.$strict> | z.ZodObject<{
4382
+ origin: z.ZodOptional<z.ZodObject<{
4383
+ schemaVersion: z.ZodLiteral<"openpond.trainingHandoffOrigin.v1">;
4384
+ teamId: z.ZodString;
4385
+ projectId: z.ZodNullable<z.ZodString>;
4386
+ configurationId: z.ZodString;
4387
+ source: z.ZodObject<{
4388
+ executionId: z.ZodString;
4389
+ passId: z.ZodNullable<z.ZodString>;
4390
+ manifestHash: z.ZodString;
4391
+ resultHash: z.ZodString;
4392
+ }, z.core.$strict>;
4393
+ dataset: z.ZodObject<{
4394
+ id: z.ZodString;
4395
+ revision: z.ZodNumber;
4396
+ contentHash: z.ZodString;
4397
+ }, z.core.$strict>;
4398
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4399
+ kind: z.ZodLiteral<"model">;
4400
+ modelId: z.ZodString;
4401
+ configurationHash: z.ZodString;
4402
+ }, z.core.$strict>, z.ZodObject<{
4403
+ kind: z.ZodLiteral<"harness">;
4404
+ source: z.ZodObject<{
4405
+ profileId: z.ZodString;
4406
+ sourceRevision: z.ZodString;
4407
+ harnessRelease: z.ZodObject<{
4408
+ id: z.ZodString;
4409
+ contentHash: z.ZodString;
4410
+ }, z.core.$strict>;
4411
+ catalogHash: z.ZodString;
4412
+ definitionId: z.ZodString;
4413
+ definitionHash: z.ZodString;
4414
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4415
+ kind: z.ZodLiteral<"profile">;
4416
+ }, z.core.$strict>, z.ZodObject<{
4417
+ kind: z.ZodLiteral<"workflow">;
4418
+ workflowId: z.ZodString;
4419
+ }, z.core.$strict>, z.ZodObject<{
4420
+ kind: z.ZodLiteral<"skill">;
4421
+ skillPath: z.ZodString;
4422
+ }, z.core.$strict>, z.ZodObject<{
4423
+ kind: z.ZodLiteral<"agent_action">;
4424
+ actionId: z.ZodString;
4425
+ }, z.core.$strict>], "kind">;
4426
+ environmentHash: z.ZodString;
4427
+ externalDatasetBinding: z.ZodOptional<z.ZodObject<{
4428
+ schemaVersion: z.ZodLiteral<"openpond.profileExternalDatasetBinding.v1">;
4429
+ dataset: z.ZodObject<{
4430
+ id: z.ZodString;
4431
+ contentHash: z.ZodString;
4432
+ revision: z.ZodNumber;
4433
+ }, z.core.$strict>;
4434
+ packageHash: z.ZodString;
4435
+ profileId: z.ZodString;
4436
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
4437
+ kind: z.ZodLiteral<"profile">;
4438
+ }, z.core.$strict>, z.ZodObject<{
4439
+ kind: z.ZodLiteral<"workflow">;
4440
+ workflowId: z.ZodString;
4441
+ }, z.core.$strict>, z.ZodObject<{
4442
+ kind: z.ZodLiteral<"skill">;
4443
+ skillPath: z.ZodString;
4444
+ }, z.core.$strict>, z.ZodObject<{
4445
+ kind: z.ZodLiteral<"agent_action">;
4446
+ actionId: z.ZodString;
4447
+ }, z.core.$strict>], "kind">;
4448
+ declaredProfileCatalogHash: z.ZodNullable<z.ZodString>;
4449
+ protectedProfileClosureHash: z.ZodString;
4450
+ recordedOrigin: z.ZodOptional<z.ZodObject<{
4451
+ execution: z.ZodObject<{
4452
+ id: z.ZodString;
4453
+ contentHash: z.ZodString;
4454
+ }, z.core.$strict>;
4455
+ originalEvidence: z.ZodObject<{
4456
+ id: z.ZodString;
4457
+ contentHash: z.ZodString;
4458
+ }, z.core.$strict>;
4459
+ members: z.ZodArray<z.ZodObject<{
4460
+ caseId: z.ZodString;
4461
+ seed: z.ZodString;
4462
+ fixtureId: z.ZodString;
4463
+ sourceId: z.ZodString;
4464
+ snapshotHash: z.ZodString;
4465
+ boundaryRevisionHash: z.ZodString;
4466
+ }, z.core.$strict>>;
4467
+ }, z.core.$strict>>;
4468
+ gradingSource: z.ZodOptional<z.ZodObject<{
4469
+ pass: z.ZodObject<{
4470
+ id: z.ZodString;
4471
+ contentHash: z.ZodString;
4472
+ }, z.core.$strict>;
4473
+ evidence: z.ZodObject<{
4474
+ id: z.ZodString;
4475
+ contentHash: z.ZodString;
4476
+ }, z.core.$strict>;
4477
+ }, z.core.$strict>>;
4478
+ split: z.ZodEnum<{
4479
+ frozen_eval: "frozen_eval";
4480
+ test: "test";
4481
+ train: "train";
4482
+ validation: "validation";
4483
+ }>;
4484
+ population: z.ZodArray<z.ZodObject<{
4485
+ taskId: z.ZodString;
4486
+ seed: z.ZodString;
4487
+ fixtureId: z.ZodNullable<z.ZodString>;
4488
+ }, z.core.$strict>>;
4489
+ evaluators: z.ZodArray<z.ZodObject<{
4490
+ release: z.ZodObject<{
4491
+ id: z.ZodString;
4492
+ contentHash: z.ZodString;
4493
+ revision: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
4494
+ }, z.core.$strict>;
4495
+ feedbackKey: z.ZodString;
4496
+ configurationHash: z.ZodString;
4497
+ output: z.ZodEnum<{
4498
+ boolean: "boolean";
4499
+ category: "category";
4500
+ score: "score";
4501
+ }>;
4502
+ categories: z.ZodArray<z.ZodString>;
4503
+ }, z.core.$strict>>;
4504
+ fieldMappingsHash: z.ZodString;
4505
+ fieldMappings: z.ZodArray<z.ZodObject<{
4506
+ graderId: z.ZodString;
4507
+ fields: z.ZodArray<z.ZodObject<{
4508
+ destination: z.ZodEnum<{
4509
+ evaluatorContext: "evaluatorContext";
4510
+ expectedOutput: "expectedOutput";
4511
+ input: "input";
4512
+ output: "output";
4513
+ }>;
4514
+ path: z.ZodArray<z.ZodString>;
4515
+ source: z.ZodEnum<{
4516
+ evaluatorContext: "evaluatorContext";
4517
+ expectedOutput: "expectedOutput";
4518
+ input: "input";
4519
+ output: "output";
4520
+ }>;
4521
+ sourcePath: z.ZodArray<z.ZodString>;
4522
+ }, z.core.$strict>>;
4523
+ }, z.core.$strict>>;
4524
+ environmentHash: z.ZodString;
4525
+ privateDatasetClosureHash: z.ZodString;
4526
+ criterion: z.ZodObject<{
4527
+ minimumPassRate: z.ZodNumber;
4528
+ requireComplete: z.ZodBoolean;
4529
+ }, z.core.$strict>;
4530
+ contentHash: z.ZodString;
4531
+ }, z.core.$strict>>;
4532
+ sourceCandidate: z.ZodOptional<z.ZodObject<{
4533
+ candidateId: z.ZodString;
4534
+ frozenRevision: z.ZodNumber;
4535
+ frozenHash: z.ZodString;
4536
+ harnessRelease: z.ZodObject<{
4537
+ id: z.ZodString;
4538
+ contentHash: z.ZodString;
4539
+ }, z.core.$strict>;
4540
+ protectedClosureHash: z.ZodString;
4541
+ }, z.core.$strict>>;
4542
+ }, z.core.$strict>;
4543
+ model: z.ZodObject<{
4544
+ modelId: z.ZodString;
4545
+ configurationHash: z.ZodString;
4546
+ }, z.core.$strict>;
4547
+ }, z.core.$strict>, z.ZodObject<{
4548
+ kind: z.ZodLiteral<"agent">;
4549
+ source: z.ZodObject<{
4550
+ harnessRelease: z.ZodObject<{
4551
+ id: z.ZodString;
4552
+ contentHash: z.ZodString;
4553
+ }, z.core.$strict>;
4554
+ agentSnapshot: z.ZodObject<{
4555
+ id: z.ZodString;
4556
+ contentHash: z.ZodString;
4557
+ }, z.core.$strict>;
4558
+ sourcePackageHash: z.ZodString;
4559
+ }, z.core.$strict>;
4560
+ model: z.ZodObject<{
4561
+ modelId: z.ZodString;
4562
+ configurationHash: z.ZodString;
4563
+ }, z.core.$strict>;
4564
+ }, z.core.$strict>, z.ZodObject<{
4565
+ kind: z.ZodLiteral<"fixture">;
4566
+ configurationHash: z.ZodString;
4567
+ }, z.core.$strict>], "kind">;
4568
+ graders: z.ZodArray<z.ZodObject<{
4569
+ feedbackKey: z.ZodString;
4570
+ evaluator: z.ZodObject<{
4571
+ id: z.ZodString;
4572
+ contentHash: z.ZodString;
4573
+ }, z.core.$strict>;
4574
+ expectedCount: z.ZodNumber;
4575
+ scoredCount: z.ZodNumber;
4576
+ score: z.ZodNullable<z.ZodNumber>;
4541
4577
  }, z.core.$strict>>;
4542
- }, z.core.$strict>, z.ZodObject<{
4543
- kind: z.ZodLiteral<"learned_model">;
4544
- modelVersion: z.ZodObject<{
4545
- id: z.ZodString;
4546
- contentHash: z.ZodString;
4547
- }, z.core.$strict>;
4548
- inputContract: z.ZodObject<{
4549
- id: z.ZodString;
4550
- path: z.ZodString;
4551
- contentHash: z.ZodString;
4552
- sizeBytes: z.ZodNumber;
4553
- mediaType: z.ZodString;
4554
- visibility: z.ZodEnum<{
4555
- host_private: "host_private";
4556
- policy: "policy";
4557
- verifier: "verifier";
4558
- }>;
4559
- }, z.core.$strict>;
4560
- }, z.core.$strict>]>;
4561
- rawScore: z.ZodObject<{
4562
- minimum: z.ZodNumber;
4563
- maximum: z.ZodNumber;
4564
- }, z.core.$strict>;
4565
- assets: z.ZodArray<z.ZodObject<{
4566
- id: z.ZodString;
4567
- path: z.ZodString;
4568
4578
  contentHash: z.ZodString;
4569
- sizeBytes: z.ZodNumber;
4570
- mediaType: z.ZodString;
4571
- visibility: z.ZodEnum<{
4572
- host_private: "host_private";
4573
- policy: "policy";
4574
- verifier: "verifier";
4575
- }>;
4576
4579
  }, z.core.$strict>>;
4577
- fixtureSetRef: z.ZodOptional<z.ZodObject<{
4580
+ schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
4581
+ id: z.ZodString;
4582
+ revision: z.ZodNumber;
4583
+ modelProjectId: z.ZodString;
4584
+ executionOwner: z.ZodEnum<{
4585
+ hosted: "hosted";
4586
+ local: "local";
4587
+ }>;
4588
+ enabled: z.ZodBoolean;
4589
+ sources: z.ZodArray<z.ZodObject<{
4578
4590
  id: z.ZodString;
4579
- path: z.ZodString;
4580
4591
  contentHash: z.ZodString;
4581
- sizeBytes: z.ZodNumber;
4582
- mediaType: z.ZodString;
4583
- visibility: z.ZodEnum<{
4584
- host_private: "host_private";
4585
- policy: "policy";
4586
- verifier: "verifier";
4587
- }>;
4592
+ revision: z.ZodNumber;
4588
4593
  }, z.core.$strict>>;
4589
- calibrationCheckRef: z.ZodOptional<z.ZodObject<{
4594
+ taskDefinition: z.ZodObject<{
4590
4595
  id: z.ZodString;
4591
4596
  contentHash: z.ZodString;
4592
4597
  revision: z.ZodNumber;
4593
- }, z.core.$strict>>;
4594
- contentHash: z.ZodString;
4595
- }, z.core.$strict> | z.ZodObject<{
4596
- schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
4597
- id: z.ZodString;
4598
- revision: z.ZodNumber;
4599
- name: z.ZodOptional<z.ZodString>;
4600
- description: z.ZodOptional<z.ZodString>;
4601
- recipeRef: z.ZodOptional<z.ZodObject<{
4598
+ }, z.core.$strict>;
4599
+ rewardBinding: z.ZodObject<{
4602
4600
  id: z.ZodString;
4603
4601
  contentHash: z.ZodString;
4604
4602
  revision: z.ZodNumber;
4603
+ }, z.core.$strict>;
4604
+ admission: z.ZodObject<{
4605
+ mode: z.ZodEnum<{
4606
+ human: "human";
4607
+ qualified_automatic: "qualified_automatic";
4608
+ }>;
4609
+ qualification: z.ZodNullable<z.ZodObject<{
4610
+ id: z.ZodString;
4611
+ contentHash: z.ZodString;
4612
+ }, z.core.$strict>>;
4613
+ minimumApprovedExamples: z.ZodNumber;
4614
+ }, z.core.$strict>;
4615
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
4616
+ kind: z.ZodLiteral<"manual">;
4617
+ }, z.core.$strict>, z.ZodObject<{
4618
+ kind: z.ZodLiteral<"approved_count">;
4619
+ }, z.core.$strict>, z.ZodObject<{
4620
+ kind: z.ZodLiteral<"schedule">;
4621
+ intervalSeconds: z.ZodNumber;
4622
+ }, z.core.$strict>, z.ZodObject<{
4623
+ localTime: z.ZodString;
4624
+ timeZone: z.ZodString;
4625
+ kind: z.ZodLiteral<"nightly">;
4626
+ }, z.core.$strict>, z.ZodObject<{
4627
+ kind: z.ZodLiteral<"upstream_accepted">;
4628
+ modelProjectId: z.ZodString;
4629
+ }, z.core.$strict>], "kind">;
4630
+ trainingParent: z.ZodObject<{
4631
+ id: z.ZodString;
4632
+ contentHash: z.ZodString;
4633
+ }, z.core.$strict>;
4634
+ teacher: z.ZodNullable<z.ZodObject<{
4635
+ id: z.ZodString;
4636
+ contentHash: z.ZodString;
4605
4637
  }, z.core.$strict>>;
4606
- sources: z.ZodArray<z.ZodObject<{
4607
- graderId: z.ZodString;
4608
- taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4609
- reward: z.ZodObject<{
4638
+ training: z.ZodObject<{
4639
+ method: z.ZodEnum<{
4640
+ dpo: "dpo";
4641
+ grpo: "grpo";
4642
+ opd: "opd";
4643
+ opsd: "opsd";
4644
+ ppo: "ppo";
4645
+ sdft: "sdft";
4646
+ sdpo: "sdpo";
4647
+ sft: "sft";
4648
+ }>;
4649
+ recipe: z.ZodObject<{
4610
4650
  id: z.ZodString;
4611
4651
  contentHash: z.ZodString;
4612
- revision: z.ZodNumber;
4613
4652
  }, z.core.$strict>;
4614
- role: z.ZodEnum<{
4615
- evaluation: "evaluation";
4616
- training: "training";
4617
- }>;
4618
- normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
4619
- kind: z.ZodLiteral<"identity">;
4620
- }, z.core.$strict>, z.ZodObject<{
4621
- kind: z.ZodLiteral<"linear">;
4622
- minimum: z.ZodNumber;
4623
- maximum: z.ZodNumber;
4624
- direction: z.ZodEnum<{
4625
- higher: "higher";
4626
- lower: "lower";
4653
+ retentionEvaluation: z.ZodObject<{
4654
+ id: z.ZodString;
4655
+ contentHash: z.ZodString;
4656
+ }, z.core.$strict>;
4657
+ replayBatches: z.ZodArray<z.ZodObject<{
4658
+ id: z.ZodString;
4659
+ contentHash: z.ZodString;
4660
+ }, z.core.$strict>>;
4661
+ continuationMode: z.ZodOptional<z.ZodObject<{
4662
+ adapterMode: z.ZodEnum<{
4663
+ residual_append: "residual_append";
4664
+ sequential_merge: "sequential_merge";
4665
+ shared: "shared";
4627
4666
  }>;
4628
- }, z.core.$strict>], "kind">;
4629
- weight: z.ZodNumber;
4630
- required: z.ZodBoolean;
4631
- hardGate: z.ZodBoolean;
4632
- privileged: z.ZodBoolean;
4633
- fixtureRefs: z.ZodArray<z.ZodObject<{
4667
+ sourceConfiguration: z.ZodObject<{
4668
+ id: z.ZodString;
4669
+ revision: z.ZodNumber;
4670
+ etag: z.ZodString;
4671
+ }, z.core.$strict>;
4672
+ }, z.core.$strict>>;
4673
+ }, z.core.$strict>;
4674
+ limits: z.ZodObject<{
4675
+ maxIterationSpendUsd: z.ZodNumber;
4676
+ maxDailySpendUsd: z.ZodNumber;
4677
+ cooldownSeconds: z.ZodNumber;
4678
+ maxRetries: z.ZodNumber;
4679
+ maxBatchExamples: z.ZodNumber;
4680
+ maxBacklogExamples: z.ZodNumber;
4681
+ }, z.core.$strict>;
4682
+ automation: z.ZodObject<{
4683
+ collect: z.ZodBoolean;
4684
+ train: z.ZodBoolean;
4685
+ accept: z.ZodBoolean;
4686
+ serve: z.ZodBoolean;
4687
+ }, z.core.$strict>;
4688
+ acceptance: z.ZodObject<{
4689
+ minimumScore: z.ZodNumber;
4690
+ maximumRetentionRegression: z.ZodNumber;
4691
+ requireImprovement: z.ZodBoolean;
4692
+ rollbackVersion: z.ZodNullable<z.ZodObject<{
4634
4693
  id: z.ZodString;
4635
4694
  contentHash: z.ZodString;
4636
4695
  }, z.core.$strict>>;
4637
- }, z.core.$strict>>;
4638
- aggregation: z.ZodLiteral<"weighted_mean">;
4639
- unscorable: z.ZodLiteral<"exclude_optional_require_all_required">;
4640
- contentHash: z.ZodString;
4641
- }, z.core.$strict> | z.ZodObject<{
4642
- schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
4643
- id: z.ZodString;
4644
- revision: z.ZodLiteral<1>;
4645
- asset: z.ZodObject<{
4646
- id: z.ZodString;
4647
- path: z.ZodString;
4648
- contentHash: z.ZodString;
4649
- sizeBytes: z.ZodNumber;
4650
- mediaType: z.ZodString;
4651
- visibility: z.ZodEnum<{
4652
- host_private: "host_private";
4653
- policy: "policy";
4654
- verifier: "verifier";
4655
- }>;
4656
4696
  }, z.core.$strict>;
4657
- text: z.ZodString;
4658
4697
  contentHash: z.ZodString;
4659
4698
  }, z.core.$strict>)[]>>;
4660
4699
  }, z.core.$strict>;