openpond-sdk 0.12.26 → 0.12.27

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 (200) hide show
  1. package/PRODUCT_INTEGRATION.md +13 -6
  2. package/README.md +2 -10
  3. package/SERVERLESS_SERVING.md +52 -35
  4. package/TASK_INGESTION.md +0 -4
  5. package/dist/advanced-refiner-evaluations.js +7 -7
  6. package/dist/ai-sdk.js +20 -83
  7. package/dist/ai-sdk.js.map +1 -1
  8. package/dist/candidate-evaluations.js +6 -6
  9. package/dist/{chunk-UZAVG2WK.js → chunk-3HOGOWKU.js} +8 -6
  10. package/dist/chunk-3HOGOWKU.js.map +1 -0
  11. package/dist/{chunk-YV6PPDXZ.js → chunk-3Z5IK2UK.js} +27 -2
  12. package/dist/chunk-3Z5IK2UK.js.map +1 -0
  13. package/dist/{chunk-4REK5TTE.js → chunk-4D4QSQC3.js} +2 -2
  14. package/dist/{chunk-AMZ2SWHR.js → chunk-534W2O2S.js} +2 -2
  15. package/dist/{chunk-6LVLWRBJ.js → chunk-54BJJL7G.js} +2 -2
  16. package/dist/{chunk-XWUTYFOU.js → chunk-5KJY44FB.js} +3 -3
  17. package/dist/{chunk-QKLZZOZD.js → chunk-7MLFWVDI.js} +29 -10
  18. package/dist/chunk-7MLFWVDI.js.map +1 -0
  19. package/dist/{chunk-4A4FNG4R.js → chunk-7ZV626YS.js} +2 -2
  20. package/dist/{chunk-57ROW3XF.js → chunk-ABOZV47D.js} +2 -2
  21. package/dist/{chunk-3BILL33A.js → chunk-BIQ5TG3T.js} +4 -4
  22. package/dist/{chunk-JINWKUKR.js → chunk-BT6CC6QB.js} +3 -3
  23. package/dist/{chunk-4PEK3YOW.js → chunk-CNFN6GHY.js} +2 -2
  24. package/dist/{chunk-X5AT253K.js → chunk-CVYGJUWM.js} +2 -2
  25. package/dist/{chunk-D26RJQU7.js → chunk-CX7ETU2F.js} +2 -2
  26. package/dist/{chunk-4CDLPMJK.js → chunk-D7LV3USE.js} +2 -2
  27. package/dist/{chunk-WZKKQNYY.js → chunk-GA7OSSEA.js} +2 -2
  28. package/dist/{chunk-EL6KZO43.js → chunk-GFWXDWEE.js} +3 -3
  29. package/dist/{chunk-XYK3MAIC.js → chunk-JYWIKBGD.js} +122 -112
  30. package/dist/chunk-JYWIKBGD.js.map +1 -0
  31. package/dist/{chunk-AQV7RQZH.js → chunk-K4WU4JOP.js} +2 -2
  32. package/dist/{chunk-CAOMKM55.js → chunk-L7MVGGBH.js} +2 -2
  33. package/dist/{chunk-P56JWQYV.js → chunk-LRFVISLA.js} +3 -3
  34. package/dist/{chunk-2U6BQ5C4.js → chunk-MJHQMQEW.js} +3 -3
  35. package/dist/chunk-ON3KSXWR.js +639 -0
  36. package/dist/chunk-ON3KSXWR.js.map +1 -0
  37. package/dist/{chunk-PMVSO23F.js → chunk-RMXZISHK.js} +10 -1
  38. package/dist/chunk-RMXZISHK.js.map +1 -0
  39. package/dist/{chunk-JWEIAEQ6.js → chunk-TMNEDWA7.js} +10 -3
  40. package/dist/chunk-TMNEDWA7.js.map +1 -0
  41. package/dist/{chunk-C7I4ZG6Q.js → chunk-TX552FQG.js} +3 -3
  42. package/dist/{chunk-4CRLQMJ2.js → chunk-VIDRZCPQ.js} +6 -6
  43. package/dist/{chunk-MN4FE52A.js → chunk-VRUAIMM3.js} +7 -7
  44. package/dist/chunk-VRUAIMM3.js.map +1 -0
  45. package/dist/{chunk-H5KHLBC5.js → chunk-WJZHSIGD.js} +6 -8
  46. package/dist/{chunk-H5KHLBC5.js.map → chunk-WJZHSIGD.js.map} +1 -1
  47. package/dist/{chunk-HCUZYGUK.js → chunk-WPTFJZ4L.js} +3 -3
  48. package/dist/connected-evidence.js +7 -7
  49. package/dist/dataset-workspaces.js +10 -10
  50. package/dist/errors.js +1 -1
  51. package/dist/experiment-evaluation-schedules.js +16 -16
  52. package/dist/experiment-improvements.js +7 -7
  53. package/dist/experiments.js +15 -15
  54. package/dist/index.js +23 -23
  55. package/dist/learning.js +15 -4
  56. package/dist/learning.js.map +1 -1
  57. package/dist/model-projects.js +1 -1
  58. package/dist/model-starter-attempts.js +2 -2
  59. package/dist/model-starter-catalog.js +4 -4
  60. package/dist/model-starters.js +4 -4
  61. package/dist/model-taskset-runs.js +3 -3
  62. package/dist/post-training.js +6 -6
  63. package/dist/taskset-drafts.js +6 -6
  64. package/dist/taskset-packages.js +12 -10
  65. package/dist/training-bundle.js +46 -20
  66. package/dist/training-bundle.js.map +1 -1
  67. package/dist/training-hardware.js +2 -2
  68. package/dist/training.js +5620 -4342
  69. package/dist/training.js.map +1 -1
  70. package/dist/types/packages/sdk/src/ai-sdk.d.ts.map +1 -1
  71. package/dist/types/packages/sdk/src/alphaedit-model-serving.d.ts +8 -4
  72. package/dist/types/packages/sdk/src/alphaedit-model-serving.d.ts.map +1 -1
  73. package/dist/types/packages/sdk/src/candidate-evaluation-client.d.ts +162 -162
  74. package/dist/types/packages/sdk/src/decision-model-serving.d.ts +4 -2
  75. package/dist/types/packages/sdk/src/decision-model-serving.d.ts.map +1 -1
  76. package/dist/types/packages/sdk/src/engram-model-serving.d.ts +3 -1
  77. package/dist/types/packages/sdk/src/engram-model-serving.d.ts.map +1 -1
  78. package/dist/types/packages/sdk/src/experiment-client.d.ts +699 -691
  79. package/dist/types/packages/sdk/src/experiment-client.d.ts.map +1 -1
  80. package/dist/types/packages/sdk/src/experiment-draft-storage.d.ts +34 -28
  81. package/dist/types/packages/sdk/src/experiment-draft-storage.d.ts.map +1 -1
  82. package/dist/types/packages/sdk/src/experiment-improvement-client.d.ts +1889 -1889
  83. package/dist/types/packages/sdk/src/experiment-run-details.d.ts +7 -7
  84. package/dist/types/packages/sdk/src/experiment-scoring-contracts.d.ts +21 -3
  85. package/dist/types/packages/sdk/src/experiment-scoring-contracts.d.ts.map +1 -1
  86. package/dist/types/packages/sdk/src/learning.d.ts +1 -0
  87. package/dist/types/packages/sdk/src/learning.d.ts.map +1 -1
  88. package/dist/types/packages/sdk/src/managed-alphaedit-executions.d.ts +272 -16
  89. package/dist/types/packages/sdk/src/managed-alphaedit-executions.d.ts.map +1 -1
  90. package/dist/types/packages/sdk/src/managed-compute-price.d.ts +53 -1
  91. package/dist/types/packages/sdk/src/managed-compute-price.d.ts.map +1 -1
  92. package/dist/types/packages/sdk/src/managed-decision-executions.d.ts +612 -356
  93. package/dist/types/packages/sdk/src/managed-decision-executions.d.ts.map +1 -1
  94. package/dist/types/packages/sdk/src/managed-engram-executions.d.ts +272 -16
  95. package/dist/types/packages/sdk/src/managed-engram-executions.d.ts.map +1 -1
  96. package/dist/types/packages/sdk/src/managed-modification-executions.d.ts +208 -16
  97. package/dist/types/packages/sdk/src/managed-modification-executions.d.ts.map +1 -1
  98. package/dist/types/packages/sdk/src/managed-neuron-training-executions.d.ts +272 -16
  99. package/dist/types/packages/sdk/src/managed-neuron-training-executions.d.ts.map +1 -1
  100. package/dist/types/packages/sdk/src/managed-serving-usage.d.ts +3 -0
  101. package/dist/types/packages/sdk/src/managed-serving-usage.d.ts.map +1 -1
  102. package/dist/types/packages/sdk/src/managed-training-preparation.d.ts +25 -25
  103. package/dist/types/packages/sdk/src/managed-training-preparation.d.ts.map +1 -1
  104. package/dist/types/packages/sdk/src/model-learning-capabilities.d.ts +4 -0
  105. package/dist/types/packages/sdk/src/model-learning-capabilities.d.ts.map +1 -0
  106. package/dist/types/packages/sdk/src/model-learning-policy.d.ts.map +1 -1
  107. package/dist/types/packages/sdk/src/model-supervised-training-defaults.d.ts.map +1 -1
  108. package/dist/types/packages/sdk/src/model-training-defaults.d.ts +5 -2
  109. package/dist/types/packages/sdk/src/model-training-defaults.d.ts.map +1 -1
  110. package/dist/types/packages/sdk/src/neuron-training-model-serving.d.ts +8 -4
  111. package/dist/types/packages/sdk/src/neuron-training-model-serving.d.ts.map +1 -1
  112. package/dist/types/packages/sdk/src/post-training.d.ts +7 -7
  113. package/dist/types/packages/sdk/src/product-model-response.d.ts +6 -2
  114. package/dist/types/packages/sdk/src/product-model-response.d.ts.map +1 -1
  115. package/dist/types/packages/sdk/src/product-model-transport.d.ts +99 -0
  116. package/dist/types/packages/sdk/src/product-model-transport.d.ts.map +1 -0
  117. package/dist/types/packages/sdk/src/product-model-wire.d.ts +104 -0
  118. package/dist/types/packages/sdk/src/product-model-wire.d.ts.map +1 -0
  119. package/dist/types/packages/sdk/src/product-models.d.ts +18 -15
  120. package/dist/types/packages/sdk/src/product-models.d.ts.map +1 -1
  121. package/dist/types/packages/sdk/src/serverless-serving.d.ts +416 -9
  122. package/dist/types/packages/sdk/src/serverless-serving.d.ts.map +1 -1
  123. package/dist/types/packages/sdk/src/steering-model-serving.d.ts +2144 -703
  124. package/dist/types/packages/sdk/src/steering-model-serving.d.ts.map +1 -1
  125. package/dist/types/packages/sdk/src/steering-profile-publication.d.ts +631 -0
  126. package/dist/types/packages/sdk/src/steering-profile-publication.d.ts.map +1 -1
  127. package/dist/types/packages/sdk/src/taskset-draft-client.d.ts +120 -120
  128. package/dist/types/packages/sdk/src/taskset-package-projection.d.ts +20 -20
  129. package/dist/types/packages/sdk/src/taskset-packages.d.ts +1 -0
  130. package/dist/types/packages/sdk/src/taskset-packages.d.ts.map +1 -1
  131. package/dist/types/packages/sdk/src/taskset-text-policy.d.ts +11 -0
  132. package/dist/types/packages/sdk/src/taskset-text-policy.d.ts.map +1 -0
  133. package/dist/types/packages/sdk/src/training-compute-selection.d.ts +6 -19
  134. package/dist/types/packages/sdk/src/training-compute-selection.d.ts.map +1 -1
  135. package/dist/types/packages/sdk/src/training-estimates.d.ts +1 -1
  136. package/dist/types/packages/sdk/src/training-experiment-setup.d.ts +4 -1
  137. package/dist/types/packages/sdk/src/training-experiment-setup.d.ts.map +1 -1
  138. package/dist/types/packages/sdk/src/training-harness-sources.d.ts +2 -2
  139. package/dist/types/packages/sdk/src/training-learning-batch.d.ts +40 -40
  140. package/dist/types/packages/sdk/src/training-model-serving-control.d.ts +406 -8
  141. package/dist/types/packages/sdk/src/training-model-serving-control.d.ts.map +1 -1
  142. package/dist/types/packages/sdk/src/training-model-serving.d.ts +1136 -30
  143. package/dist/types/packages/sdk/src/training-model-serving.d.ts.map +1 -1
  144. package/dist/types/packages/sdk/src/training-operations.d.ts +11197 -0
  145. package/dist/types/packages/sdk/src/training-operations.d.ts.map +1 -0
  146. package/dist/types/packages/sdk/src/training-qualification-preparation.d.ts +25 -25
  147. package/dist/types/packages/sdk/src/training-supervised.d.ts +13 -0
  148. package/dist/types/packages/sdk/src/training-supervised.d.ts.map +1 -1
  149. package/dist/types/packages/sdk/src/training-transport.d.ts +4 -1
  150. package/dist/types/packages/sdk/src/training-transport.d.ts.map +1 -1
  151. package/dist/types/packages/sdk/src/training.d.ts +15885 -4662
  152. package/dist/types/packages/sdk/src/training.d.ts.map +1 -1
  153. package/dist/types/packages/sdk/src/weight-inference.d.ts +8 -5
  154. package/dist/types/packages/sdk/src/weight-inference.d.ts.map +1 -1
  155. package/dist/types/packages/sdk/src/weight-model-versions.d.ts +2089 -398
  156. package/dist/types/packages/sdk/src/weight-model-versions.d.ts.map +1 -1
  157. package/dist/types/packages/sdk/src/weight-space-artifact.d.ts +433 -0
  158. package/dist/types/packages/sdk/src/weight-space-artifact.d.ts.map +1 -0
  159. package/dist/types/packages/sdk/src/weight-space-evaluation.d.ts +1437 -0
  160. package/dist/types/packages/sdk/src/weight-space-evaluation.d.ts.map +1 -0
  161. package/dist/types/packages/sdk/src/weight-space-model-serving.d.ts +2910 -0
  162. package/dist/types/packages/sdk/src/weight-space-model-serving.d.ts.map +1 -0
  163. package/dist/types/packages/sdk/src/weight-space-programming.d.ts +845 -0
  164. package/dist/types/packages/sdk/src/weight-space-programming.d.ts.map +1 -0
  165. package/dist/types/packages/sdk/src/weight-space-sessions.d.ts +4600 -0
  166. package/dist/types/packages/sdk/src/weight-space-sessions.d.ts.map +1 -0
  167. package/fixtures/python-foundation/operation-matrix.json +369 -0
  168. package/fixtures/python-foundation/schemas.json +34304 -27905
  169. package/fixtures/python-foundation/training-estimate-http-workflow.json +1 -1
  170. package/package.json +2 -2
  171. package/dist/chunk-JWEIAEQ6.js.map +0 -1
  172. package/dist/chunk-MN4FE52A.js.map +0 -1
  173. package/dist/chunk-PMVSO23F.js.map +0 -1
  174. package/dist/chunk-QKLZZOZD.js.map +0 -1
  175. package/dist/chunk-UZAVG2WK.js.map +0 -1
  176. package/dist/chunk-XYK3MAIC.js.map +0 -1
  177. package/dist/chunk-YV6PPDXZ.js.map +0 -1
  178. package/dist/chunk-ZG4HVCJB.js +0 -248
  179. package/dist/chunk-ZG4HVCJB.js.map +0 -1
  180. /package/dist/{chunk-4REK5TTE.js.map → chunk-4D4QSQC3.js.map} +0 -0
  181. /package/dist/{chunk-AMZ2SWHR.js.map → chunk-534W2O2S.js.map} +0 -0
  182. /package/dist/{chunk-6LVLWRBJ.js.map → chunk-54BJJL7G.js.map} +0 -0
  183. /package/dist/{chunk-XWUTYFOU.js.map → chunk-5KJY44FB.js.map} +0 -0
  184. /package/dist/{chunk-4A4FNG4R.js.map → chunk-7ZV626YS.js.map} +0 -0
  185. /package/dist/{chunk-57ROW3XF.js.map → chunk-ABOZV47D.js.map} +0 -0
  186. /package/dist/{chunk-3BILL33A.js.map → chunk-BIQ5TG3T.js.map} +0 -0
  187. /package/dist/{chunk-JINWKUKR.js.map → chunk-BT6CC6QB.js.map} +0 -0
  188. /package/dist/{chunk-4PEK3YOW.js.map → chunk-CNFN6GHY.js.map} +0 -0
  189. /package/dist/{chunk-X5AT253K.js.map → chunk-CVYGJUWM.js.map} +0 -0
  190. /package/dist/{chunk-D26RJQU7.js.map → chunk-CX7ETU2F.js.map} +0 -0
  191. /package/dist/{chunk-4CDLPMJK.js.map → chunk-D7LV3USE.js.map} +0 -0
  192. /package/dist/{chunk-WZKKQNYY.js.map → chunk-GA7OSSEA.js.map} +0 -0
  193. /package/dist/{chunk-EL6KZO43.js.map → chunk-GFWXDWEE.js.map} +0 -0
  194. /package/dist/{chunk-AQV7RQZH.js.map → chunk-K4WU4JOP.js.map} +0 -0
  195. /package/dist/{chunk-CAOMKM55.js.map → chunk-L7MVGGBH.js.map} +0 -0
  196. /package/dist/{chunk-P56JWQYV.js.map → chunk-LRFVISLA.js.map} +0 -0
  197. /package/dist/{chunk-2U6BQ5C4.js.map → chunk-MJHQMQEW.js.map} +0 -0
  198. /package/dist/{chunk-C7I4ZG6Q.js.map → chunk-TX552FQG.js.map} +0 -0
  199. /package/dist/{chunk-4CRLQMJ2.js.map → chunk-VIDRZCPQ.js.map} +0 -0
  200. /package/dist/{chunk-HCUZYGUK.js.map → chunk-WPTFJZ4L.js.map} +0 -0
@@ -193,6 +193,7 @@ export declare const SteeringModelServingContentSchema: z.ZodObject<{
193
193
  selective_neuron_training: "selective_neuron_training";
194
194
  steering: "steering";
195
195
  training: "training";
196
+ weight_space_programming: "weight_space_programming";
196
197
  }>;
197
198
  price: z.ZodObject<{
198
199
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -659,6 +660,7 @@ export declare const SteeringModelServingSchema: z.ZodObject<{
659
660
  selective_neuron_training: "selective_neuron_training";
660
661
  steering: "steering";
661
662
  training: "training";
663
+ weight_space_programming: "weight_space_programming";
662
664
  }>;
663
665
  price: z.ZodObject<{
664
666
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -1108,8 +1110,7 @@ export declare const SteeringModelServingSchema: z.ZodObject<{
1108
1110
  }, z.core.$strict>;
1109
1111
  export type SteeringModelServing = z.infer<typeof SteeringModelServingSchema>;
1110
1112
  export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
- serverlessReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1112
- schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1113
+ serverlessReview: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1113
1114
  teamId: z.ZodString;
1114
1115
  modelProjectId: z.ZodString;
1115
1116
  versionHash: z.ZodString;
@@ -1129,6 +1130,11 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1129
1130
  hourlyUsd: z.ZodString;
1130
1131
  service: z.ZodLiteral<"model_serving">;
1131
1132
  }, z.core.$strict>;
1133
+ workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1134
+ maximumRequestMillis: z.ZodLiteral<540000>;
1135
+ expiresAt: z.ZodISODateTime;
1136
+ contentHash: z.ZodString;
1137
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1132
1138
  rules: z.ZodObject<{
1133
1139
  quantity: z.ZodLiteral<"allocated_engine_milliseconds">;
1134
1140
  allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
@@ -1140,11 +1146,87 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1140
1146
  tokenRetailUsd: z.ZodLiteral<"0.000000">;
1141
1147
  minimumBillableMillis: z.ZodLiteral<0>;
1142
1148
  }, z.core.$strict>;
1149
+ }, z.core.$strict>, z.ZodObject<{
1150
+ teamId: z.ZodString;
1151
+ modelProjectId: z.ZodString;
1152
+ versionHash: z.ZodString;
1153
+ artifact: z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ contentHash: z.ZodString;
1156
+ }, z.core.$strict>;
1157
+ baseProfileId: z.ZodString;
1158
+ workerImageDigest: z.ZodString;
1159
+ providerConfigurationHash: z.ZodString;
1160
+ price: z.ZodObject<{
1161
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1162
+ version: z.ZodString;
1163
+ profileHash: z.ZodString;
1164
+ currency: z.ZodLiteral<"USD">;
1165
+ unit: z.ZodLiteral<"resource_hour">;
1166
+ hourlyUsd: z.ZodString;
1167
+ service: z.ZodLiteral<"model_serving">;
1168
+ }, z.core.$strict>;
1143
1169
  workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1144
1170
  maximumRequestMillis: z.ZodLiteral<540000>;
1145
1171
  expiresAt: z.ZodISODateTime;
1146
1172
  contentHash: z.ZodString;
1147
- }, z.core.$strict>>>;
1173
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v2">;
1174
+ rules: z.ZodObject<{
1175
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1176
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1177
+ startupBillable: z.ZodLiteral<true>;
1178
+ idleBillable: z.ZodLiteral<true>;
1179
+ cleanupBillable: z.ZodLiteral<true>;
1180
+ queueBillable: z.ZodLiteral<false>;
1181
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1182
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1183
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1184
+ minimumBillableMillis: z.ZodLiteral<0>;
1185
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1186
+ }, z.core.$strict>;
1187
+ }, z.core.$strict>, z.ZodObject<{
1188
+ teamId: z.ZodString;
1189
+ modelProjectId: z.ZodString;
1190
+ versionHash: z.ZodString;
1191
+ artifact: z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ contentHash: z.ZodString;
1194
+ }, z.core.$strict>;
1195
+ baseProfileId: z.ZodString;
1196
+ workerImageDigest: z.ZodString;
1197
+ providerConfigurationHash: z.ZodString;
1198
+ price: z.ZodObject<{
1199
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1200
+ version: z.ZodString;
1201
+ profileHash: z.ZodString;
1202
+ currency: z.ZodLiteral<"USD">;
1203
+ unit: z.ZodLiteral<"resource_hour">;
1204
+ hourlyUsd: z.ZodString;
1205
+ service: z.ZodLiteral<"model_serving">;
1206
+ }, z.core.$strict>;
1207
+ maximumRequestMillis: z.ZodLiteral<540000>;
1208
+ expiresAt: z.ZodISODateTime;
1209
+ contentHash: z.ZodString;
1210
+ rules: z.ZodObject<{
1211
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1212
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1213
+ startupBillable: z.ZodLiteral<true>;
1214
+ idleBillable: z.ZodLiteral<true>;
1215
+ cleanupBillable: z.ZodLiteral<true>;
1216
+ queueBillable: z.ZodLiteral<false>;
1217
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1218
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1219
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1220
+ minimumBillableMillis: z.ZodLiteral<0>;
1221
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1222
+ }, z.core.$strict>;
1223
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v3">;
1224
+ workerIdleTimeoutSeconds: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<60>]>;
1225
+ hardware: z.ZodOptional<z.ZodObject<{
1226
+ selection: z.ZodLiteral<"automatic">;
1227
+ gpuTypeIds: z.ZodArray<z.ZodString>;
1228
+ }, z.core.$strict>>;
1229
+ }, z.core.$strict>], "schemaVersion">>>;
1148
1230
  usageBilling: z.ZodOptional<z.ZodObject<{
1149
1231
  schemaVersion: z.ZodLiteral<"openpond.managedServingUsageReviewResult.v1">;
1150
1232
  availability: z.ZodEnum<{
@@ -1164,6 +1246,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1164
1246
  selective_neuron_training: "selective_neuron_training";
1165
1247
  steering: "steering";
1166
1248
  training: "training";
1249
+ weight_space_programming: "weight_space_programming";
1167
1250
  }>;
1168
1251
  price: z.ZodObject<{
1169
1252
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -1567,8 +1650,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1567
1650
  serverless: z.ZodOptional<z.ZodObject<{
1568
1651
  schemaVersion: z.ZodLiteral<"openpond.serverlessServing.v1">;
1569
1652
  ownerKey: z.ZodString;
1570
- review: z.ZodObject<{
1571
- schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1653
+ review: z.ZodDiscriminatedUnion<[z.ZodObject<{
1572
1654
  teamId: z.ZodString;
1573
1655
  modelProjectId: z.ZodString;
1574
1656
  versionHash: z.ZodString;
@@ -1588,6 +1670,11 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1588
1670
  hourlyUsd: z.ZodString;
1589
1671
  service: z.ZodLiteral<"model_serving">;
1590
1672
  }, z.core.$strict>;
1673
+ workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1674
+ maximumRequestMillis: z.ZodLiteral<540000>;
1675
+ expiresAt: z.ZodISODateTime;
1676
+ contentHash: z.ZodString;
1677
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1591
1678
  rules: z.ZodObject<{
1592
1679
  quantity: z.ZodLiteral<"allocated_engine_milliseconds">;
1593
1680
  allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
@@ -1599,11 +1686,87 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1599
1686
  tokenRetailUsd: z.ZodLiteral<"0.000000">;
1600
1687
  minimumBillableMillis: z.ZodLiteral<0>;
1601
1688
  }, z.core.$strict>;
1689
+ }, z.core.$strict>, z.ZodObject<{
1690
+ teamId: z.ZodString;
1691
+ modelProjectId: z.ZodString;
1692
+ versionHash: z.ZodString;
1693
+ artifact: z.ZodObject<{
1694
+ id: z.ZodString;
1695
+ contentHash: z.ZodString;
1696
+ }, z.core.$strict>;
1697
+ baseProfileId: z.ZodString;
1698
+ workerImageDigest: z.ZodString;
1699
+ providerConfigurationHash: z.ZodString;
1700
+ price: z.ZodObject<{
1701
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1702
+ version: z.ZodString;
1703
+ profileHash: z.ZodString;
1704
+ currency: z.ZodLiteral<"USD">;
1705
+ unit: z.ZodLiteral<"resource_hour">;
1706
+ hourlyUsd: z.ZodString;
1707
+ service: z.ZodLiteral<"model_serving">;
1708
+ }, z.core.$strict>;
1602
1709
  workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1603
1710
  maximumRequestMillis: z.ZodLiteral<540000>;
1604
1711
  expiresAt: z.ZodISODateTime;
1605
1712
  contentHash: z.ZodString;
1606
- }, z.core.$strict>;
1713
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v2">;
1714
+ rules: z.ZodObject<{
1715
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1716
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1717
+ startupBillable: z.ZodLiteral<true>;
1718
+ idleBillable: z.ZodLiteral<true>;
1719
+ cleanupBillable: z.ZodLiteral<true>;
1720
+ queueBillable: z.ZodLiteral<false>;
1721
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1722
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1723
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1724
+ minimumBillableMillis: z.ZodLiteral<0>;
1725
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1726
+ }, z.core.$strict>;
1727
+ }, z.core.$strict>, z.ZodObject<{
1728
+ teamId: z.ZodString;
1729
+ modelProjectId: z.ZodString;
1730
+ versionHash: z.ZodString;
1731
+ artifact: z.ZodObject<{
1732
+ id: z.ZodString;
1733
+ contentHash: z.ZodString;
1734
+ }, z.core.$strict>;
1735
+ baseProfileId: z.ZodString;
1736
+ workerImageDigest: z.ZodString;
1737
+ providerConfigurationHash: z.ZodString;
1738
+ price: z.ZodObject<{
1739
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1740
+ version: z.ZodString;
1741
+ profileHash: z.ZodString;
1742
+ currency: z.ZodLiteral<"USD">;
1743
+ unit: z.ZodLiteral<"resource_hour">;
1744
+ hourlyUsd: z.ZodString;
1745
+ service: z.ZodLiteral<"model_serving">;
1746
+ }, z.core.$strict>;
1747
+ maximumRequestMillis: z.ZodLiteral<540000>;
1748
+ expiresAt: z.ZodISODateTime;
1749
+ contentHash: z.ZodString;
1750
+ rules: z.ZodObject<{
1751
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1752
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1753
+ startupBillable: z.ZodLiteral<true>;
1754
+ idleBillable: z.ZodLiteral<true>;
1755
+ cleanupBillable: z.ZodLiteral<true>;
1756
+ queueBillable: z.ZodLiteral<false>;
1757
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1758
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1759
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1760
+ minimumBillableMillis: z.ZodLiteral<0>;
1761
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1762
+ }, z.core.$strict>;
1763
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v3">;
1764
+ workerIdleTimeoutSeconds: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<60>]>;
1765
+ hardware: z.ZodOptional<z.ZodObject<{
1766
+ selection: z.ZodLiteral<"automatic">;
1767
+ gpuTypeIds: z.ZodArray<z.ZodString>;
1768
+ }, z.core.$strict>>;
1769
+ }, z.core.$strict>], "schemaVersion">;
1607
1770
  customerCapUsd: z.ZodNullable<z.ZodString>;
1608
1771
  state: z.ZodEnum<{
1609
1772
  active: "active";
@@ -1617,6 +1780,28 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1617
1780
  pending: "pending";
1618
1781
  reconciled: "reconciled";
1619
1782
  }>;
1783
+ usage: z.ZodOptional<z.ZodObject<{
1784
+ mode: z.ZodLiteral<"periodic_actual_usage">;
1785
+ phase: z.ZodEnum<{
1786
+ closed: "closed";
1787
+ running: "running";
1788
+ starting: "starting";
1789
+ stopping: "stopping";
1790
+ waiting_capacity: "waiting_capacity";
1791
+ waiting_funding: "waiting_funding";
1792
+ waiting_platform: "waiting_platform";
1793
+ }>;
1794
+ ratedUsd: z.ZodString;
1795
+ chargedUsd: z.ZodString;
1796
+ prepaidDebitedUsd: z.ZodString;
1797
+ includedUsageUsd: z.ZodString;
1798
+ pendingEvidence: z.ZodBoolean;
1799
+ lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
1800
+ lastDebitAt: z.ZodNullable<z.ZodISODateTime>;
1801
+ nextDebitAt: z.ZodNullable<z.ZodISODateTime>;
1802
+ retryAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1803
+ stopReason: z.ZodNullable<z.ZodString>;
1804
+ }, z.core.$strict>>;
1620
1805
  }, z.core.$strict>>;
1621
1806
  usage: z.ZodOptional<z.ZodObject<{
1622
1807
  schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
@@ -1696,8 +1881,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1696
1881
  serverless: z.ZodOptional<z.ZodObject<{
1697
1882
  schemaVersion: z.ZodLiteral<"openpond.serverlessServing.v1">;
1698
1883
  ownerKey: z.ZodString;
1699
- review: z.ZodObject<{
1700
- schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1884
+ review: z.ZodDiscriminatedUnion<[z.ZodObject<{
1701
1885
  teamId: z.ZodString;
1702
1886
  modelProjectId: z.ZodString;
1703
1887
  versionHash: z.ZodString;
@@ -1717,6 +1901,11 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1717
1901
  hourlyUsd: z.ZodString;
1718
1902
  service: z.ZodLiteral<"model_serving">;
1719
1903
  }, z.core.$strict>;
1904
+ workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1905
+ maximumRequestMillis: z.ZodLiteral<540000>;
1906
+ expiresAt: z.ZodISODateTime;
1907
+ contentHash: z.ZodString;
1908
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v1">;
1720
1909
  rules: z.ZodObject<{
1721
1910
  quantity: z.ZodLiteral<"allocated_engine_milliseconds">;
1722
1911
  allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
@@ -1728,11 +1917,87 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1728
1917
  tokenRetailUsd: z.ZodLiteral<"0.000000">;
1729
1918
  minimumBillableMillis: z.ZodLiteral<0>;
1730
1919
  }, z.core.$strict>;
1920
+ }, z.core.$strict>, z.ZodObject<{
1921
+ teamId: z.ZodString;
1922
+ modelProjectId: z.ZodString;
1923
+ versionHash: z.ZodString;
1924
+ artifact: z.ZodObject<{
1925
+ id: z.ZodString;
1926
+ contentHash: z.ZodString;
1927
+ }, z.core.$strict>;
1928
+ baseProfileId: z.ZodString;
1929
+ workerImageDigest: z.ZodString;
1930
+ providerConfigurationHash: z.ZodString;
1931
+ price: z.ZodObject<{
1932
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1933
+ version: z.ZodString;
1934
+ profileHash: z.ZodString;
1935
+ currency: z.ZodLiteral<"USD">;
1936
+ unit: z.ZodLiteral<"resource_hour">;
1937
+ hourlyUsd: z.ZodString;
1938
+ service: z.ZodLiteral<"model_serving">;
1939
+ }, z.core.$strict>;
1731
1940
  workerIdleTimeoutSeconds: z.ZodLiteral<5>;
1732
1941
  maximumRequestMillis: z.ZodLiteral<540000>;
1733
1942
  expiresAt: z.ZodISODateTime;
1734
1943
  contentHash: z.ZodString;
1735
- }, z.core.$strict>;
1944
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v2">;
1945
+ rules: z.ZodObject<{
1946
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1947
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1948
+ startupBillable: z.ZodLiteral<true>;
1949
+ idleBillable: z.ZodLiteral<true>;
1950
+ cleanupBillable: z.ZodLiteral<true>;
1951
+ queueBillable: z.ZodLiteral<false>;
1952
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1953
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1954
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1955
+ minimumBillableMillis: z.ZodLiteral<0>;
1956
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1957
+ }, z.core.$strict>;
1958
+ }, z.core.$strict>, z.ZodObject<{
1959
+ teamId: z.ZodString;
1960
+ modelProjectId: z.ZodString;
1961
+ versionHash: z.ZodString;
1962
+ artifact: z.ZodObject<{
1963
+ id: z.ZodString;
1964
+ contentHash: z.ZodString;
1965
+ }, z.core.$strict>;
1966
+ baseProfileId: z.ZodString;
1967
+ workerImageDigest: z.ZodString;
1968
+ providerConfigurationHash: z.ZodString;
1969
+ price: z.ZodObject<{
1970
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1971
+ version: z.ZodString;
1972
+ profileHash: z.ZodString;
1973
+ currency: z.ZodLiteral<"USD">;
1974
+ unit: z.ZodLiteral<"resource_hour">;
1975
+ hourlyUsd: z.ZodString;
1976
+ service: z.ZodLiteral<"model_serving">;
1977
+ }, z.core.$strict>;
1978
+ maximumRequestMillis: z.ZodLiteral<540000>;
1979
+ expiresAt: z.ZodISODateTime;
1980
+ contentHash: z.ZodString;
1981
+ rules: z.ZodObject<{
1982
+ quantity: z.ZodLiteral<"allocated_worker_milliseconds">;
1983
+ allocation: z.ZodLiteral<"equal_billing_principal_then_request">;
1984
+ startupBillable: z.ZodLiteral<true>;
1985
+ idleBillable: z.ZodLiteral<true>;
1986
+ cleanupBillable: z.ZodLiteral<true>;
1987
+ queueBillable: z.ZodLiteral<false>;
1988
+ failure: z.ZodLiteral<"observed_worker_runtime">;
1989
+ cancellation: z.ZodLiteral<"until_worker_stop">;
1990
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
1991
+ minimumBillableMillis: z.ZodLiteral<0>;
1992
+ supplierRounding: z.ZodLiteral<"ceil_worker_lifetime_second_once">;
1993
+ }, z.core.$strict>;
1994
+ schemaVersion: z.ZodLiteral<"openpond.serverlessServingReview.v3">;
1995
+ workerIdleTimeoutSeconds: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<60>]>;
1996
+ hardware: z.ZodOptional<z.ZodObject<{
1997
+ selection: z.ZodLiteral<"automatic">;
1998
+ gpuTypeIds: z.ZodArray<z.ZodString>;
1999
+ }, z.core.$strict>>;
2000
+ }, z.core.$strict>], "schemaVersion">;
1736
2001
  customerCapUsd: z.ZodNullable<z.ZodString>;
1737
2002
  state: z.ZodEnum<{
1738
2003
  active: "active";
@@ -1746,6 +2011,28 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1746
2011
  pending: "pending";
1747
2012
  reconciled: "reconciled";
1748
2013
  }>;
2014
+ usage: z.ZodOptional<z.ZodObject<{
2015
+ mode: z.ZodLiteral<"periodic_actual_usage">;
2016
+ phase: z.ZodEnum<{
2017
+ closed: "closed";
2018
+ running: "running";
2019
+ starting: "starting";
2020
+ stopping: "stopping";
2021
+ waiting_capacity: "waiting_capacity";
2022
+ waiting_funding: "waiting_funding";
2023
+ waiting_platform: "waiting_platform";
2024
+ }>;
2025
+ ratedUsd: z.ZodString;
2026
+ chargedUsd: z.ZodString;
2027
+ prepaidDebitedUsd: z.ZodString;
2028
+ includedUsageUsd: z.ZodString;
2029
+ pendingEvidence: z.ZodBoolean;
2030
+ lastEvidenceAt: z.ZodNullable<z.ZodISODateTime>;
2031
+ lastDebitAt: z.ZodNullable<z.ZodISODateTime>;
2032
+ nextDebitAt: z.ZodNullable<z.ZodISODateTime>;
2033
+ retryAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2034
+ stopReason: z.ZodNullable<z.ZodString>;
2035
+ }, z.core.$strict>>;
1749
2036
  }, z.core.$strict>>;
1750
2037
  usage: z.ZodOptional<z.ZodObject<{
1751
2038
  schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
@@ -1914,6 +2201,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1914
2201
  selective_neuron_training: "selective_neuron_training";
1915
2202
  steering: "steering";
1916
2203
  training: "training";
2204
+ weight_space_programming: "weight_space_programming";
1917
2205
  }>;
1918
2206
  price: z.ZodObject<{
1919
2207
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -2380,6 +2668,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2380
2668
  selective_neuron_training: "selective_neuron_training";
2381
2669
  steering: "steering";
2382
2670
  training: "training";
2671
+ weight_space_programming: "weight_space_programming";
2383
2672
  }>;
2384
2673
  price: z.ZodObject<{
2385
2674
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -2834,6 +3123,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2834
3123
  selective_neuron_training: "selective_neuron_training";
2835
3124
  steering: "steering";
2836
3125
  training: "training";
3126
+ weight_space_programming: "weight_space_programming";
2837
3127
  }>;
2838
3128
  price: z.ZodObject<{
2839
3129
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -3851,6 +4141,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
3851
4141
  selective_neuron_training: "selective_neuron_training";
3852
4142
  steering: "steering";
3853
4143
  training: "training";
4144
+ weight_space_programming: "weight_space_programming";
3854
4145
  }>;
3855
4146
  price: z.ZodObject<{
3856
4147
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -4341,6 +4632,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4341
4632
  method: z.ZodEnum<{
4342
4633
  alphaedit: "alphaedit";
4343
4634
  selective_neuron_training: "selective_neuron_training";
4635
+ weight_space_programming: "weight_space_programming";
4344
4636
  }>;
4345
4637
  savedModel: z.ZodObject<{
4346
4638
  modelProjectId: z.ZodString;
@@ -4393,6 +4685,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4393
4685
  selective_neuron_training: "selective_neuron_training";
4394
4686
  steering: "steering";
4395
4687
  training: "training";
4688
+ weight_space_programming: "weight_space_programming";
4396
4689
  }>;
4397
4690
  price: z.ZodObject<{
4398
4691
  schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
@@ -4941,6 +5234,7 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4941
5234
  method: z.ZodEnum<{
4942
5235
  alphaedit: "alphaedit";
4943
5236
  selective_neuron_training: "selective_neuron_training";
5237
+ weight_space_programming: "weight_space_programming";
4944
5238
  }>;
4945
5239
  savedModel: z.ZodObject<{
4946
5240
  modelProjectId: z.ZodString;
@@ -4973,69 +5267,207 @@ export declare const SavedModelServingSchema: z.ZodDiscriminatedUnion<[z.ZodObje
4973
5267
  unavailable: "unavailable";
4974
5268
  }>;
4975
5269
  contentHash: z.ZodString;
4976
- }, z.core.$strict>], "schemaVersion">;
4977
- export type SavedModelServing = z.infer<typeof SavedModelServingSchema>;
4978
- export declare const SavedModelServingQuerySchema: z.ZodObject<{
4979
- teamId: z.ZodString;
4980
- versionHash: z.ZodString;
4981
- }, z.core.$strict>;
4982
- export declare const SteeringModelServingControlReceiptContentSchema: z.ZodObject<{
4983
- schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlReceipt.v1">;
4984
- teamId: z.ZodString;
4985
- modelProjectId: z.ZodString;
4986
- actorId: z.ZodString;
4987
- request: z.ZodObject<{
4988
- usageApproval: z.ZodOptional<z.ZodObject<{
4989
- schemaVersion: z.ZodLiteral<"openpond.managedServingUsageApproval.v1">;
4990
- reviewHash: z.ZodString;
4991
- customerCapUsd: z.ZodNullable<z.ZodString>;
4992
- }, z.core.$strict>>;
4993
- schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlRequest.v1">;
4994
- teamId: z.ZodString;
4995
- operationId: z.ZodString;
4996
- versionHash: z.ZodString;
4997
- expectedRevision: z.ZodNumber;
4998
- action: z.ZodEnum<{
4999
- activate: "activate";
5000
- stop: "stop";
5270
+ }, z.core.$strict>, z.ZodObject<{
5271
+ usageBilling: z.ZodOptional<z.ZodObject<{
5272
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsageReviewResult.v1">;
5273
+ availability: z.ZodEnum<{
5274
+ reviewable: "reviewable";
5275
+ unavailable: "unavailable";
5001
5276
  }>;
5002
- defaultPublication: z.ZodNullable<z.ZodObject<{
5003
- id: z.ZodString;
5004
- revision: z.ZodNumber;
5005
- contentHash: z.ZodString;
5006
- }, z.core.$strict>>;
5007
- idleTimeoutSeconds: z.ZodNumber;
5008
- }, z.core.$strict>;
5009
- version: z.ZodObject<{
5010
- schemaVersion: z.ZodLiteral<"openpond.steeringModelVersion.v1">;
5011
- teamId: z.ZodString;
5012
- modelProjectId: z.ZodString;
5013
- portableProjectId: z.ZodString;
5014
- publication: z.ZodObject<{
5015
- schemaVersion: z.ZodLiteral<"openpond.steeringProfilePublication.v1">;
5016
- id: z.ZodString;
5017
- revision: z.ZodLiteral<1>;
5277
+ reason: z.ZodNullable<z.ZodString>;
5278
+ review: z.ZodNullable<z.ZodObject<{
5279
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsageReview.v1">;
5018
5280
  teamId: z.ZodString;
5019
- ownerUserId: z.ZodString;
5020
- projectId: z.ZodNullable<z.ZodString>;
5021
- name: z.ZodString;
5022
- baseModel: z.ZodObject<{
5023
- schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
5024
- modelId: z.ZodString;
5025
- revision: z.ZodNullable<z.ZodString>;
5026
- tokenizerRevision: z.ZodNullable<z.ZodString>;
5027
- chatTemplateHash: z.ZodNullable<z.ZodString>;
5028
- modelAssetId: z.ZodNullable<z.ZodString>;
5029
- source: z.ZodEnum<{
5030
- builtin: "builtin";
5031
- local: "local";
5032
- managed: "managed";
5033
- }>;
5034
- }, z.core.$strict>;
5035
- profile: z.ZodObject<{
5036
- schemaVersion: z.ZodLiteral<"openpond.neuronSteeringProfile.v1">;
5037
- model: z.ZodObject<{
5038
- schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
5281
+ modelProjectId: z.ZodString;
5282
+ versionHash: z.ZodString;
5283
+ method: z.ZodEnum<{
5284
+ alphaedit: "alphaedit";
5285
+ decision: "decision";
5286
+ engram: "engram";
5287
+ selective_neuron_training: "selective_neuron_training";
5288
+ steering: "steering";
5289
+ training: "training";
5290
+ weight_space_programming: "weight_space_programming";
5291
+ }>;
5292
+ price: z.ZodObject<{
5293
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
5294
+ version: z.ZodString;
5295
+ profileHash: z.ZodString;
5296
+ currency: z.ZodLiteral<"USD">;
5297
+ unit: z.ZodLiteral<"resource_hour">;
5298
+ hourlyUsd: z.ZodString;
5299
+ service: z.ZodLiteral<"model_serving">;
5300
+ }, z.core.$strict>;
5301
+ runtimeHash: z.ZodString;
5302
+ workerImageDigest: z.ZodString;
5303
+ providerConfigurationHash: z.ZodString;
5304
+ idleTimeoutSeconds: z.ZodLiteral<300>;
5305
+ rules: z.ZodObject<{
5306
+ billableStart: z.ZodLiteral<"provider_allocation">;
5307
+ startupBillable: z.ZodLiteral<true>;
5308
+ idleBillable: z.ZodLiteral<true>;
5309
+ explicitStop: z.ZodLiteral<"logical_admission_closed">;
5310
+ postTrainingReuseBillable: z.ZodLiteral<false>;
5311
+ minimumBillableMillis: z.ZodLiteral<0>;
5312
+ tokenRetailUsd: z.ZodLiteral<"0.000000">;
5313
+ }, z.core.$strict>;
5314
+ nativeControl: z.ZodObject<{
5315
+ protocol: z.ZodLiteral<"openpond.workerComputeControl.v1">;
5316
+ executionLeaseMillis: z.ZodLiteral<30000>;
5317
+ stopHeadroomMillis: z.ZodLiteral<60000>;
5318
+ qualificationHash: z.ZodString;
5319
+ }, z.core.$strict>;
5320
+ workDeadlineAt: z.ZodISODateTime;
5321
+ expiresAt: z.ZodISODateTime;
5322
+ contentHash: z.ZodString;
5323
+ }, z.core.$strict>>;
5324
+ usage: z.ZodNullable<z.ZodObject<{
5325
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
5326
+ deploymentKey: z.ZodString;
5327
+ reviewHash: z.ZodString;
5328
+ price: z.ZodObject<{
5329
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
5330
+ version: z.ZodString;
5331
+ profileHash: z.ZodString;
5332
+ currency: z.ZodLiteral<"USD">;
5333
+ unit: z.ZodLiteral<"resource_hour">;
5334
+ hourlyUsd: z.ZodString;
5335
+ service: z.ZodLiteral<"model_serving">;
5336
+ }, z.core.$strict>;
5337
+ customerCapUsd: z.ZodNullable<z.ZodString>;
5338
+ fundingState: z.ZodEnum<{
5339
+ active: "active";
5340
+ closed: "closed";
5341
+ exhausted: "exhausted";
5342
+ pending: "pending";
5343
+ }>;
5344
+ stopReason: z.ZodNullable<z.ZodEnum<{
5345
+ cap_reached: "cap_reached";
5346
+ control_expired: "control_expired";
5347
+ credit_exhausted: "credit_exhausted";
5348
+ explicit_stop: "explicit_stop";
5349
+ idle_timeout: "idle_timeout";
5350
+ member_cap_reached: "member_cap_reached";
5351
+ native_unavailable: "native_unavailable";
5352
+ policy_changed: "policy_changed";
5353
+ work_deadline: "work_deadline";
5354
+ }>>;
5355
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
5356
+ lastActivityAt: z.ZodNullable<z.ZodISODateTime>;
5357
+ idleExpiresAt: z.ZodNullable<z.ZodISODateTime>;
5358
+ billableStoppedAt: z.ZodNullable<z.ZodISODateTime>;
5359
+ quantityMillis: z.ZodNumber;
5360
+ chargedUsd: z.ZodString;
5361
+ reservationId: z.ZodNullable<z.ZodString>;
5362
+ }, z.core.$strict>>;
5363
+ }, z.core.$strict>>;
5364
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceModelServing.v1">;
5365
+ teamId: z.ZodString;
5366
+ modelProjectId: z.ZodString;
5367
+ observedAt: z.ZodISODateTime;
5368
+ version: z.ZodObject<{
5369
+ teamId: z.ZodString;
5370
+ ownerUserId: z.ZodString;
5371
+ modelProjectId: z.ZodString;
5372
+ portableProjectId: z.ZodString;
5373
+ baseModel: z.ZodObject<{
5374
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
5375
+ modelId: z.ZodString;
5376
+ revision: z.ZodNullable<z.ZodString>;
5377
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
5378
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
5379
+ modelAssetId: z.ZodNullable<z.ZodString>;
5380
+ source: z.ZodEnum<{
5381
+ builtin: "builtin";
5382
+ local: "local";
5383
+ managed: "managed";
5384
+ }>;
5385
+ }, z.core.$strict>;
5386
+ source: z.ZodObject<{
5387
+ executionId: z.ZodString;
5388
+ inputHash: z.ZodString;
5389
+ runtimeHash: z.ZodString;
5390
+ resultHash: z.ZodString;
5391
+ }, z.core.$strict>;
5392
+ createdAt: z.ZodISODateTime;
5393
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceModelVersion.v1">;
5394
+ request: z.ZodObject<{
5395
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
5396
+ model: z.ZodObject<{
5397
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
5398
+ modelId: z.ZodString;
5399
+ revision: z.ZodString;
5400
+ configHash: z.ZodString;
5401
+ weightsHash: z.ZodString;
5402
+ tokenizerHash: z.ZodString;
5403
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
5404
+ architecture: z.ZodLiteral<"dense_decoder">;
5405
+ dtype: z.ZodEnum<{
5406
+ bfloat16: "bfloat16";
5407
+ float16: "float16";
5408
+ float32: "float32";
5409
+ }>;
5410
+ quantization: z.ZodLiteral<"none">;
5411
+ adapter: z.ZodNull;
5412
+ hiddenSize: z.ZodNumber;
5413
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
5414
+ }, z.core.$strict>;
5415
+ teacher: z.ZodObject<{
5416
+ controller: z.ZodLiteral<"local_agent">;
5417
+ providerId: z.ZodString;
5418
+ modelId: z.ZodString;
5419
+ sessionId: z.ZodString;
5420
+ }, z.core.$strict>;
5421
+ objective: z.ZodString;
5422
+ panels: z.ZodArray<z.ZodObject<{
5423
+ id: z.ZodString;
5424
+ source: z.ZodNullable<z.ZodObject<{
5425
+ id: z.ZodString;
5426
+ contentHash: z.ZodString;
5427
+ revision: z.ZodNumber;
5428
+ }, z.core.$strict>>;
5429
+ role: z.ZodEnum<{
5430
+ development: "development";
5431
+ preservation: "preservation";
5432
+ }>;
5433
+ prompts: z.ZodArray<z.ZodObject<{
5434
+ id: z.ZodString;
5435
+ text: z.ZodString;
5436
+ system: z.ZodOptional<z.ZodString>;
5437
+ }, z.core.$strict>>;
5438
+ }, z.core.$strict>>;
5439
+ frozenEvaluation: z.ZodNullable<z.ZodObject<{
5440
+ id: z.ZodString;
5441
+ contentHash: z.ZodString;
5442
+ revision: z.ZodNumber;
5443
+ }, z.core.$strict>>;
5444
+ generation: z.ZodObject<{
5445
+ maxOutputTokens: z.ZodNumber;
5446
+ seed: z.ZodNumber;
5447
+ sampling: z.ZodLiteral<"greedy_v1">;
5448
+ }, z.core.$strict>;
5449
+ limits: z.ZodObject<{
5450
+ maximumDurationSeconds: z.ZodNumber;
5451
+ maximumIdleSeconds: z.ZodNumber;
5452
+ maximumCommands: z.ZodNumber;
5453
+ maximumCandidates: z.ZodNumber;
5454
+ maximumPatchColumns: z.ZodNumber;
5455
+ maximumTensorElements: z.ZodNumber;
5456
+ maximumReturnedValues: z.ZodNumber;
5457
+ maximumArithmeticWork: z.ZodNumber;
5458
+ maximumForwardTokenWork: z.ZodNumber;
5459
+ maximumCheckpointBytes: z.ZodNumber;
5460
+ }, z.core.$strict>;
5461
+ }, z.core.$strict>;
5462
+ artifact: z.ZodObject<{
5463
+ id: z.ZodString;
5464
+ contentHash: z.ZodString;
5465
+ manifest: z.ZodObject<{
5466
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceArtifact.v1">;
5467
+ method: z.ZodLiteral<"weight_space_programming">;
5468
+ representation: z.ZodLiteral<"exact_bf16_mlp_column_replacements_v1">;
5469
+ model: z.ZodObject<{
5470
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
5039
5471
  modelId: z.ZodString;
5040
5472
  revision: z.ZodString;
5041
5473
  configHash: z.ZodString;
@@ -5053,64 +5485,69 @@ export declare const SteeringModelServingControlReceiptContentSchema: z.ZodObjec
5053
5485
  hiddenSize: z.ZodNumber;
5054
5486
  intermediateSizes: z.ZodArray<z.ZodNumber>;
5055
5487
  }, z.core.$strict>;
5056
- hook: z.ZodLiteral<"mlp.down_proj.input">;
5057
- operation: z.ZodLiteral<"add">;
5058
- normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
5059
- mode: z.ZodLiteral<"baseline_prompt_residual_median">;
5060
- statistic: z.ZodLiteral<"midpoint_median_fp32">;
5061
- sample: z.ZodLiteral<"non_padding_prompt_after_position_zero">;
5062
- }, z.core.$strict>, z.ZodObject<{
5063
- mode: z.ZodLiteral<"fixed_residual_reference">;
5064
- calibration: z.ZodObject<{
5065
- id: z.ZodString;
5066
- revision: z.ZodNumber;
5067
- contentHash: z.ZodString;
5068
- }, z.core.$strict>;
5069
- }, z.core.$strict>], "mode">;
5070
- tokenScope: z.ZodObject<{
5071
- phase: z.ZodEnum<{
5072
- decode_only: "decode_only";
5073
- prompt_and_decode: "prompt_and_decode";
5074
- prompt_only: "prompt_only";
5075
- }>;
5076
- positions: z.ZodEnum<{
5077
- after_position_zero: "after_position_zero";
5078
- all_non_padding: "all_non_padding";
5079
- }>;
5488
+ requestHash: z.ZodString;
5489
+ runtimeHash: z.ZodString;
5490
+ candidateHash: z.ZodString;
5491
+ teacher: z.ZodObject<{
5492
+ controller: z.ZodLiteral<"local_agent">;
5493
+ providerId: z.ZodString;
5494
+ modelId: z.ZodString;
5495
+ sessionId: z.ZodString;
5080
5496
  }, z.core.$strict>;
5081
- entries: z.ZodArray<z.ZodObject<{
5497
+ historyHash: z.ZodString;
5498
+ columns: z.ZodArray<z.ZodObject<{
5082
5499
  layer: z.ZodNumber;
5083
- neuron: z.ZodNumber;
5084
- dose: z.ZodNumber;
5500
+ columns: z.ZodArray<z.ZodNumber>;
5085
5501
  }, z.core.$strict>>;
5502
+ columnHashes: z.ZodArray<z.ZodString>;
5503
+ payload: z.ZodObject<{
5504
+ path: z.ZodLiteral<"patch.safetensors">;
5505
+ sha256: z.ZodString;
5506
+ sizeBytes: z.ZodNumber;
5507
+ tensors: z.ZodArray<z.ZodObject<{
5508
+ name: z.ZodString;
5509
+ dtype: z.ZodEnum<{
5510
+ BF16: "BF16";
5511
+ I64: "I64";
5512
+ }>;
5513
+ shape: z.ZodArray<z.ZodNumber>;
5514
+ }, z.core.$strict>>;
5515
+ }, z.core.$strict>;
5516
+ reload: z.ZodObject<{
5517
+ effectiveColumnsHash: z.ZodString;
5518
+ reloadedColumnsHash: z.ZodString;
5519
+ untouchedWeightsHashBefore: z.ZodString;
5520
+ untouchedWeightsHashAfter: z.ZodString;
5521
+ equivalent: z.ZodLiteral<true>;
5522
+ }, z.core.$strict>;
5086
5523
  contentHash: z.ZodString;
5087
5524
  }, z.core.$strict>;
5088
- source: z.ZodObject<{
5089
- executionId: z.ZodString;
5090
- inputHash: z.ZodString;
5091
- runtimeHash: z.ZodString;
5092
- resultHash: z.ZodString;
5093
- variantId: z.ZodString;
5094
- }, z.core.$strict>;
5095
- calibrationEvidence: z.ZodArray<z.ZodObject<{
5096
- promptId: z.ZodString;
5097
- calibration: z.ZodArray<z.ZodObject<{
5098
- layer: z.ZodNumber;
5099
- median: z.ZodNumber;
5100
- sampleCount: z.ZodNumber;
5101
- columnNorms: z.ZodArray<z.ZodObject<{
5102
- neuron: z.ZodNumber;
5103
- norm: z.ZodNumber;
5104
- }, z.core.$strict>>;
5105
- }, z.core.$strict>>;
5525
+ files: z.ZodArray<z.ZodObject<{
5526
+ path: z.ZodEnum<{
5527
+ "manifest.json": "manifest.json";
5528
+ "patch.safetensors": "patch.safetensors";
5529
+ }>;
5530
+ artifactId: z.ZodString;
5531
+ sha256: z.ZodString;
5532
+ sizeBytes: z.ZodNumber;
5106
5533
  }, z.core.$strict>>;
5107
- createdAt: z.ZodISODateTime;
5108
- contentHash: z.ZodString;
5109
5534
  }, z.core.$strict>;
5110
- createdAt: z.ZodISODateTime;
5111
5535
  contentHash: z.ZodString;
5112
5536
  }, z.core.$strict>;
5113
- control: z.ZodObject<{
5537
+ availability: z.ZodObject<{
5538
+ state: z.ZodEnum<{
5539
+ qualified: "qualified";
5540
+ unavailable: "unavailable";
5541
+ }>;
5542
+ reason: z.ZodEnum<{
5543
+ artifact_unavailable: "artifact_unavailable";
5544
+ model_mismatch: "model_mismatch";
5545
+ qualified: "qualified";
5546
+ runtime_unavailable: "runtime_unavailable";
5547
+ }>;
5548
+ runtimeHash: z.ZodNullable<z.ZodString>;
5549
+ }, z.core.$strict>;
5550
+ control: z.ZodNullable<z.ZodObject<{
5114
5551
  usage: z.ZodOptional<z.ZodObject<{
5115
5552
  schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
5116
5553
  deploymentKey: z.ZodString;
@@ -5150,18 +5587,13 @@ export declare const SteeringModelServingControlReceiptContentSchema: z.ZodObjec
5150
5587
  chargedUsd: z.ZodString;
5151
5588
  reservationId: z.ZodNullable<z.ZodString>;
5152
5589
  }, z.core.$strict>>;
5153
- schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControl.v1">;
5590
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceModelServingControl.v1">;
5154
5591
  teamId: z.ZodString;
5155
5592
  modelProjectId: z.ZodString;
5156
5593
  versionHash: z.ZodString;
5157
5594
  actorId: z.ZodString;
5158
5595
  operationId: z.ZodString;
5159
5596
  revision: z.ZodNumber;
5160
- defaultPublication: z.ZodNullable<z.ZodObject<{
5161
- id: z.ZodString;
5162
- revision: z.ZodNumber;
5163
- contentHash: z.ZodString;
5164
- }, z.core.$strict>>;
5165
5597
  desiredState: z.ZodEnum<{
5166
5598
  active: "active";
5167
5599
  stopped: "stopped";
@@ -5190,14 +5622,168 @@ export declare const SteeringModelServingControlReceiptContentSchema: z.ZodObjec
5190
5622
  idleTimeoutSeconds: z.ZodNumber;
5191
5623
  failureCode: z.ZodNullable<z.ZodString>;
5192
5624
  updatedAt: z.ZodISODateTime;
5193
- }, z.core.$strict>;
5194
- }, z.core.$strict>;
5195
- export declare const SteeringModelServingControlReceiptSchema: z.ZodObject<{
5196
- schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlReceipt.v1">;
5197
- teamId: z.ZodString;
5198
- modelProjectId: z.ZodString;
5199
- actorId: z.ZodString;
5200
- request: z.ZodObject<{
5625
+ }, z.core.$strict>>;
5626
+ cleanup: z.ZodArray<z.ZodObject<{
5627
+ usage: z.ZodOptional<z.ZodObject<{
5628
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
5629
+ deploymentKey: z.ZodString;
5630
+ reviewHash: z.ZodString;
5631
+ price: z.ZodObject<{
5632
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
5633
+ version: z.ZodString;
5634
+ profileHash: z.ZodString;
5635
+ currency: z.ZodLiteral<"USD">;
5636
+ unit: z.ZodLiteral<"resource_hour">;
5637
+ hourlyUsd: z.ZodString;
5638
+ service: z.ZodLiteral<"model_serving">;
5639
+ }, z.core.$strict>;
5640
+ customerCapUsd: z.ZodNullable<z.ZodString>;
5641
+ fundingState: z.ZodEnum<{
5642
+ active: "active";
5643
+ closed: "closed";
5644
+ exhausted: "exhausted";
5645
+ pending: "pending";
5646
+ }>;
5647
+ stopReason: z.ZodNullable<z.ZodEnum<{
5648
+ cap_reached: "cap_reached";
5649
+ control_expired: "control_expired";
5650
+ credit_exhausted: "credit_exhausted";
5651
+ explicit_stop: "explicit_stop";
5652
+ idle_timeout: "idle_timeout";
5653
+ member_cap_reached: "member_cap_reached";
5654
+ native_unavailable: "native_unavailable";
5655
+ policy_changed: "policy_changed";
5656
+ work_deadline: "work_deadline";
5657
+ }>>;
5658
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
5659
+ lastActivityAt: z.ZodNullable<z.ZodISODateTime>;
5660
+ idleExpiresAt: z.ZodNullable<z.ZodISODateTime>;
5661
+ billableStoppedAt: z.ZodNullable<z.ZodISODateTime>;
5662
+ quantityMillis: z.ZodNumber;
5663
+ chargedUsd: z.ZodString;
5664
+ reservationId: z.ZodNullable<z.ZodString>;
5665
+ }, z.core.$strict>>;
5666
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceModelServingControl.v1">;
5667
+ teamId: z.ZodString;
5668
+ modelProjectId: z.ZodString;
5669
+ versionHash: z.ZodString;
5670
+ actorId: z.ZodString;
5671
+ operationId: z.ZodString;
5672
+ revision: z.ZodNumber;
5673
+ desiredState: z.ZodEnum<{
5674
+ active: "active";
5675
+ stopped: "stopped";
5676
+ }>;
5677
+ phase: z.ZodEnum<{
5678
+ active: "active";
5679
+ failed: "failed";
5680
+ starting: "starting";
5681
+ stopped: "stopped";
5682
+ stopping: "stopping";
5683
+ }>;
5684
+ capacityState: z.ZodEnum<{
5685
+ pending: "pending";
5686
+ released: "released";
5687
+ retiring: "retiring";
5688
+ shared: "shared";
5689
+ }>;
5690
+ modelId: z.ZodString;
5691
+ poolId: z.ZodNullable<z.ZodString>;
5692
+ binding: z.ZodNullable<z.ZodObject<{
5693
+ id: z.ZodString;
5694
+ revision: z.ZodNumber;
5695
+ }, z.core.$strict>>;
5696
+ activeRequests: z.ZodNumber;
5697
+ unsettledRequests: z.ZodNumber;
5698
+ idleTimeoutSeconds: z.ZodNumber;
5699
+ failureCode: z.ZodNullable<z.ZodString>;
5700
+ updatedAt: z.ZodISODateTime;
5701
+ }, z.core.$strict>>;
5702
+ pools: z.ZodArray<z.ZodObject<{
5703
+ id: z.ZodString;
5704
+ provider: z.ZodString;
5705
+ state: z.ZodEnum<{
5706
+ degraded: "degraded";
5707
+ deleted: "deleted";
5708
+ deleting: "deleting";
5709
+ failed: "failed";
5710
+ provisioning: "provisioning";
5711
+ ready: "ready";
5712
+ requested: "requested";
5713
+ }>;
5714
+ workersMin: z.ZodNumber;
5715
+ workersMax: z.ZodNumber;
5716
+ idleTimeoutSeconds: z.ZodNumber;
5717
+ workerImageDigest: z.ZodNullable<z.ZodString>;
5718
+ endpointRecorded: z.ZodBoolean;
5719
+ activeDeployments: z.ZodNumber;
5720
+ activeBindings: z.ZodNumber;
5721
+ activeRequests: z.ZodNumber;
5722
+ unsettledRequests: z.ZodNumber;
5723
+ retirementBlocked: z.ZodBoolean;
5724
+ }, z.core.$strict>>;
5725
+ bindings: z.ZodArray<z.ZodObject<{
5726
+ id: z.ZodString;
5727
+ revision: z.ZodNumber;
5728
+ modelId: z.ZodString;
5729
+ poolId: z.ZodString;
5730
+ versionHash: z.ZodString;
5731
+ }, z.core.$strict>>;
5732
+ lastVerifiedInference: z.ZodNullable<z.ZodObject<{
5733
+ schemaVersion: z.ZodLiteral<"openpond.weightModelInferenceReceipt.v1">;
5734
+ teamId: z.ZodString;
5735
+ requestId: z.ZodString;
5736
+ requestHash: z.ZodString;
5737
+ selection: z.ZodObject<{
5738
+ schemaVersion: z.ZodLiteral<"openpond.resolvedWeightModelSelection.v1">;
5739
+ method: z.ZodEnum<{
5740
+ alphaedit: "alphaedit";
5741
+ selective_neuron_training: "selective_neuron_training";
5742
+ weight_space_programming: "weight_space_programming";
5743
+ }>;
5744
+ savedModel: z.ZodObject<{
5745
+ modelProjectId: z.ZodString;
5746
+ versionHash: z.ZodString;
5747
+ }, z.core.$strict>;
5748
+ artifact: z.ZodObject<{
5749
+ id: z.ZodString;
5750
+ contentHash: z.ZodString;
5751
+ manifestSha256: z.ZodString;
5752
+ }, z.core.$strict>;
5753
+ modelHash: z.ZodString;
5754
+ }, z.core.$strict>;
5755
+ poolId: z.ZodString;
5756
+ routingBinding: z.ZodObject<{
5757
+ id: z.ZodString;
5758
+ revision: z.ZodNumber;
5759
+ }, z.core.$strict>;
5760
+ runtimeHash: z.ZodString;
5761
+ workerImageDigest: z.ZodString;
5762
+ engineGeneration: z.ZodNumber;
5763
+ cacheNamespace: z.ZodString;
5764
+ completedAt: z.ZodISODateTime;
5765
+ contentHash: z.ZodString;
5766
+ }, z.core.$strict>>;
5767
+ state: z.ZodEnum<{
5768
+ active: "active";
5769
+ inactive: "inactive";
5770
+ retiring: "retiring";
5771
+ starting: "starting";
5772
+ unavailable: "unavailable";
5773
+ }>;
5774
+ contentHash: z.ZodString;
5775
+ }, z.core.$strict>], "schemaVersion">;
5776
+ export type SavedModelServing = z.infer<typeof SavedModelServingSchema>;
5777
+ export declare const SavedModelServingQuerySchema: z.ZodObject<{
5778
+ teamId: z.ZodString;
5779
+ versionHash: z.ZodString;
5780
+ }, z.core.$strict>;
5781
+ export declare const SteeringModelServingControlReceiptContentSchema: z.ZodObject<{
5782
+ schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlReceipt.v1">;
5783
+ teamId: z.ZodString;
5784
+ modelProjectId: z.ZodString;
5785
+ actorId: z.ZodString;
5786
+ request: z.ZodObject<{
5201
5787
  usageApproval: z.ZodOptional<z.ZodObject<{
5202
5788
  schemaVersion: z.ZodLiteral<"openpond.managedServingUsageApproval.v1">;
5203
5789
  reviewHash: z.ZodString;
@@ -5404,103 +5990,535 @@ export declare const SteeringModelServingControlReceiptSchema: z.ZodObject<{
5404
5990
  failureCode: z.ZodNullable<z.ZodString>;
5405
5991
  updatedAt: z.ZodISODateTime;
5406
5992
  }, z.core.$strict>;
5407
- contentHash: z.ZodString;
5408
5993
  }, z.core.$strict>;
5409
- export type SteeringModelServingControlReceipt = z.infer<typeof SteeringModelServingControlReceiptSchema>;
5410
- export declare function steeringModelServingState(value: Pick<SteeringModelServing, "availability" | "control" | "cleanup" | "pools" | "bindings">): SteeringModelServing["state"];
5411
- export declare function parseAndVerifySteeringModelServingControl(raw: unknown, expected: {
5412
- modelProjectId: string;
5413
- request: SteeringModelServingControlRequest;
5414
- actorId?: string;
5415
- }): Promise<{
5416
- schemaVersion: "openpond.steeringModelServingControlReceipt.v1";
5417
- teamId: string;
5418
- modelProjectId: string;
5419
- actorId: string;
5420
- request: {
5421
- usageApproval?: {
5422
- schemaVersion: "openpond.managedServingUsageApproval.v1";
5423
- reviewHash: string;
5424
- customerCapUsd: string | null;
5425
- } | undefined;
5426
- schemaVersion: "openpond.steeringModelServingControlRequest.v1";
5427
- teamId: string;
5428
- operationId: string;
5429
- versionHash: string;
5430
- expectedRevision: number;
5431
- action: "activate" | "stop";
5432
- defaultPublication: {
5433
- id: string;
5434
- revision: number;
5435
- contentHash: string;
5436
- } | null;
5437
- idleTimeoutSeconds: number;
5438
- };
5439
- version: {
5440
- schemaVersion: "openpond.steeringModelVersion.v1";
5441
- teamId: string;
5442
- modelProjectId: string;
5443
- portableProjectId: string;
5444
- publication: {
5445
- schemaVersion: "openpond.steeringProfilePublication.v1";
5446
- id: string;
5447
- revision: 1;
5448
- teamId: string;
5449
- ownerUserId: string;
5450
- projectId: string | null;
5451
- name: string;
5452
- baseModel: {
5453
- schemaVersion: "openpond.baseModelPreference.v1";
5454
- modelId: string;
5455
- revision: string | null;
5456
- tokenizerRevision: string | null;
5457
- chatTemplateHash: string | null;
5458
- modelAssetId: string | null;
5459
- source: "builtin" | "local" | "managed";
5460
- };
5461
- profile: {
5462
- schemaVersion: "openpond.neuronSteeringProfile.v1";
5463
- model: {
5464
- schemaVersion: "openpond.neuronSteeringModel.v1";
5465
- modelId: string;
5466
- revision: string;
5467
- configHash: string;
5468
- weightsHash: string;
5469
- tokenizerHash: string;
5470
- weightIdentity: "torch_state_dict_sha256_v1";
5471
- architecture: "dense_decoder";
5472
- dtype: "bfloat16" | "float16" | "float32";
5473
- quantization: "none";
5474
- adapter: null;
5475
- hiddenSize: number;
5476
- intermediateSizes: number[];
5477
- };
5478
- hook: "mlp.down_proj.input";
5479
- operation: "add";
5480
- normalization: {
5481
- mode: "baseline_prompt_residual_median";
5482
- statistic: "midpoint_median_fp32";
5483
- sample: "non_padding_prompt_after_position_zero";
5484
- } | {
5485
- mode: "fixed_residual_reference";
5486
- calibration: {
5487
- id: string;
5488
- revision: number;
5489
- contentHash: string;
5490
- };
5491
- };
5492
- tokenScope: {
5493
- phase: "decode_only" | "prompt_and_decode" | "prompt_only";
5494
- positions: "after_position_zero" | "all_non_padding";
5495
- };
5496
- entries: {
5497
- layer: number;
5498
- neuron: number;
5499
- dose: number;
5500
- }[];
5501
- contentHash: string;
5502
- };
5503
- source: {
5994
+ export declare const SteeringModelServingControlReceiptSchema: z.ZodObject<{
5995
+ schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlReceipt.v1">;
5996
+ teamId: z.ZodString;
5997
+ modelProjectId: z.ZodString;
5998
+ actorId: z.ZodString;
5999
+ request: z.ZodObject<{
6000
+ usageApproval: z.ZodOptional<z.ZodObject<{
6001
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsageApproval.v1">;
6002
+ reviewHash: z.ZodString;
6003
+ customerCapUsd: z.ZodNullable<z.ZodString>;
6004
+ }, z.core.$strict>>;
6005
+ schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControlRequest.v1">;
6006
+ teamId: z.ZodString;
6007
+ operationId: z.ZodString;
6008
+ versionHash: z.ZodString;
6009
+ expectedRevision: z.ZodNumber;
6010
+ action: z.ZodEnum<{
6011
+ activate: "activate";
6012
+ stop: "stop";
6013
+ }>;
6014
+ defaultPublication: z.ZodNullable<z.ZodObject<{
6015
+ id: z.ZodString;
6016
+ revision: z.ZodNumber;
6017
+ contentHash: z.ZodString;
6018
+ }, z.core.$strict>>;
6019
+ idleTimeoutSeconds: z.ZodNumber;
6020
+ }, z.core.$strict>;
6021
+ version: z.ZodObject<{
6022
+ schemaVersion: z.ZodLiteral<"openpond.steeringModelVersion.v1">;
6023
+ teamId: z.ZodString;
6024
+ modelProjectId: z.ZodString;
6025
+ portableProjectId: z.ZodString;
6026
+ publication: z.ZodObject<{
6027
+ schemaVersion: z.ZodLiteral<"openpond.steeringProfilePublication.v1">;
6028
+ id: z.ZodString;
6029
+ revision: z.ZodLiteral<1>;
6030
+ teamId: z.ZodString;
6031
+ ownerUserId: z.ZodString;
6032
+ projectId: z.ZodNullable<z.ZodString>;
6033
+ name: z.ZodString;
6034
+ baseModel: z.ZodObject<{
6035
+ schemaVersion: z.ZodLiteral<"openpond.baseModelPreference.v1">;
6036
+ modelId: z.ZodString;
6037
+ revision: z.ZodNullable<z.ZodString>;
6038
+ tokenizerRevision: z.ZodNullable<z.ZodString>;
6039
+ chatTemplateHash: z.ZodNullable<z.ZodString>;
6040
+ modelAssetId: z.ZodNullable<z.ZodString>;
6041
+ source: z.ZodEnum<{
6042
+ builtin: "builtin";
6043
+ local: "local";
6044
+ managed: "managed";
6045
+ }>;
6046
+ }, z.core.$strict>;
6047
+ profile: z.ZodObject<{
6048
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringProfile.v1">;
6049
+ model: z.ZodObject<{
6050
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
6051
+ modelId: z.ZodString;
6052
+ revision: z.ZodString;
6053
+ configHash: z.ZodString;
6054
+ weightsHash: z.ZodString;
6055
+ tokenizerHash: z.ZodString;
6056
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
6057
+ architecture: z.ZodLiteral<"dense_decoder">;
6058
+ dtype: z.ZodEnum<{
6059
+ bfloat16: "bfloat16";
6060
+ float16: "float16";
6061
+ float32: "float32";
6062
+ }>;
6063
+ quantization: z.ZodLiteral<"none">;
6064
+ adapter: z.ZodNull;
6065
+ hiddenSize: z.ZodNumber;
6066
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
6067
+ }, z.core.$strict>;
6068
+ hook: z.ZodLiteral<"mlp.down_proj.input">;
6069
+ operation: z.ZodLiteral<"add">;
6070
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
6071
+ mode: z.ZodLiteral<"baseline_prompt_residual_median">;
6072
+ statistic: z.ZodLiteral<"midpoint_median_fp32">;
6073
+ sample: z.ZodLiteral<"non_padding_prompt_after_position_zero">;
6074
+ }, z.core.$strict>, z.ZodObject<{
6075
+ mode: z.ZodLiteral<"fixed_residual_reference">;
6076
+ calibration: z.ZodObject<{
6077
+ id: z.ZodString;
6078
+ revision: z.ZodNumber;
6079
+ contentHash: z.ZodString;
6080
+ }, z.core.$strict>;
6081
+ }, z.core.$strict>], "mode">;
6082
+ tokenScope: z.ZodObject<{
6083
+ phase: z.ZodEnum<{
6084
+ decode_only: "decode_only";
6085
+ prompt_and_decode: "prompt_and_decode";
6086
+ prompt_only: "prompt_only";
6087
+ }>;
6088
+ positions: z.ZodEnum<{
6089
+ after_position_zero: "after_position_zero";
6090
+ all_non_padding: "all_non_padding";
6091
+ }>;
6092
+ }, z.core.$strict>;
6093
+ entries: z.ZodArray<z.ZodObject<{
6094
+ layer: z.ZodNumber;
6095
+ neuron: z.ZodNumber;
6096
+ dose: z.ZodNumber;
6097
+ }, z.core.$strict>>;
6098
+ contentHash: z.ZodString;
6099
+ }, z.core.$strict>;
6100
+ source: z.ZodObject<{
6101
+ executionId: z.ZodString;
6102
+ inputHash: z.ZodString;
6103
+ runtimeHash: z.ZodString;
6104
+ resultHash: z.ZodString;
6105
+ variantId: z.ZodString;
6106
+ }, z.core.$strict>;
6107
+ calibrationEvidence: z.ZodArray<z.ZodObject<{
6108
+ promptId: z.ZodString;
6109
+ calibration: z.ZodArray<z.ZodObject<{
6110
+ layer: z.ZodNumber;
6111
+ median: z.ZodNumber;
6112
+ sampleCount: z.ZodNumber;
6113
+ columnNorms: z.ZodArray<z.ZodObject<{
6114
+ neuron: z.ZodNumber;
6115
+ norm: z.ZodNumber;
6116
+ }, z.core.$strict>>;
6117
+ }, z.core.$strict>>;
6118
+ }, z.core.$strict>>;
6119
+ createdAt: z.ZodISODateTime;
6120
+ contentHash: z.ZodString;
6121
+ }, z.core.$strict>;
6122
+ createdAt: z.ZodISODateTime;
6123
+ contentHash: z.ZodString;
6124
+ }, z.core.$strict>;
6125
+ control: z.ZodObject<{
6126
+ usage: z.ZodOptional<z.ZodObject<{
6127
+ schemaVersion: z.ZodLiteral<"openpond.managedServingUsage.v1">;
6128
+ deploymentKey: z.ZodString;
6129
+ reviewHash: z.ZodString;
6130
+ price: z.ZodObject<{
6131
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
6132
+ version: z.ZodString;
6133
+ profileHash: z.ZodString;
6134
+ currency: z.ZodLiteral<"USD">;
6135
+ unit: z.ZodLiteral<"resource_hour">;
6136
+ hourlyUsd: z.ZodString;
6137
+ service: z.ZodLiteral<"model_serving">;
6138
+ }, z.core.$strict>;
6139
+ customerCapUsd: z.ZodNullable<z.ZodString>;
6140
+ fundingState: z.ZodEnum<{
6141
+ active: "active";
6142
+ closed: "closed";
6143
+ exhausted: "exhausted";
6144
+ pending: "pending";
6145
+ }>;
6146
+ stopReason: z.ZodNullable<z.ZodEnum<{
6147
+ cap_reached: "cap_reached";
6148
+ control_expired: "control_expired";
6149
+ credit_exhausted: "credit_exhausted";
6150
+ explicit_stop: "explicit_stop";
6151
+ idle_timeout: "idle_timeout";
6152
+ member_cap_reached: "member_cap_reached";
6153
+ native_unavailable: "native_unavailable";
6154
+ policy_changed: "policy_changed";
6155
+ work_deadline: "work_deadline";
6156
+ }>>;
6157
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
6158
+ lastActivityAt: z.ZodNullable<z.ZodISODateTime>;
6159
+ idleExpiresAt: z.ZodNullable<z.ZodISODateTime>;
6160
+ billableStoppedAt: z.ZodNullable<z.ZodISODateTime>;
6161
+ quantityMillis: z.ZodNumber;
6162
+ chargedUsd: z.ZodString;
6163
+ reservationId: z.ZodNullable<z.ZodString>;
6164
+ }, z.core.$strict>>;
6165
+ schemaVersion: z.ZodLiteral<"openpond.steeringModelServingControl.v1">;
6166
+ teamId: z.ZodString;
6167
+ modelProjectId: z.ZodString;
6168
+ versionHash: z.ZodString;
6169
+ actorId: z.ZodString;
6170
+ operationId: z.ZodString;
6171
+ revision: z.ZodNumber;
6172
+ defaultPublication: z.ZodNullable<z.ZodObject<{
6173
+ id: z.ZodString;
6174
+ revision: z.ZodNumber;
6175
+ contentHash: z.ZodString;
6176
+ }, z.core.$strict>>;
6177
+ desiredState: z.ZodEnum<{
6178
+ active: "active";
6179
+ stopped: "stopped";
6180
+ }>;
6181
+ phase: z.ZodEnum<{
6182
+ active: "active";
6183
+ failed: "failed";
6184
+ starting: "starting";
6185
+ stopped: "stopped";
6186
+ stopping: "stopping";
6187
+ }>;
6188
+ capacityState: z.ZodEnum<{
6189
+ pending: "pending";
6190
+ released: "released";
6191
+ retiring: "retiring";
6192
+ shared: "shared";
6193
+ }>;
6194
+ modelId: z.ZodString;
6195
+ poolId: z.ZodNullable<z.ZodString>;
6196
+ binding: z.ZodNullable<z.ZodObject<{
6197
+ id: z.ZodString;
6198
+ revision: z.ZodNumber;
6199
+ }, z.core.$strict>>;
6200
+ activeRequests: z.ZodNumber;
6201
+ unsettledRequests: z.ZodNumber;
6202
+ idleTimeoutSeconds: z.ZodNumber;
6203
+ failureCode: z.ZodNullable<z.ZodString>;
6204
+ updatedAt: z.ZodISODateTime;
6205
+ }, z.core.$strict>;
6206
+ contentHash: z.ZodString;
6207
+ }, z.core.$strict>;
6208
+ export type SteeringModelServingControlReceipt = z.infer<typeof SteeringModelServingControlReceiptSchema>;
6209
+ export declare function steeringModelServingState(value: Pick<SteeringModelServing, "availability" | "control" | "cleanup" | "pools" | "bindings">): SteeringModelServing["state"];
6210
+ export declare function parseAndVerifySteeringModelServingControl(raw: unknown, expected: {
6211
+ modelProjectId: string;
6212
+ request: SteeringModelServingControlRequest;
6213
+ actorId?: string;
6214
+ }): Promise<{
6215
+ schemaVersion: "openpond.steeringModelServingControlReceipt.v1";
6216
+ teamId: string;
6217
+ modelProjectId: string;
6218
+ actorId: string;
6219
+ request: {
6220
+ usageApproval?: {
6221
+ schemaVersion: "openpond.managedServingUsageApproval.v1";
6222
+ reviewHash: string;
6223
+ customerCapUsd: string | null;
6224
+ } | undefined;
6225
+ schemaVersion: "openpond.steeringModelServingControlRequest.v1";
6226
+ teamId: string;
6227
+ operationId: string;
6228
+ versionHash: string;
6229
+ expectedRevision: number;
6230
+ action: "activate" | "stop";
6231
+ defaultPublication: {
6232
+ id: string;
6233
+ revision: number;
6234
+ contentHash: string;
6235
+ } | null;
6236
+ idleTimeoutSeconds: number;
6237
+ };
6238
+ version: {
6239
+ schemaVersion: "openpond.steeringModelVersion.v1";
6240
+ teamId: string;
6241
+ modelProjectId: string;
6242
+ portableProjectId: string;
6243
+ publication: {
6244
+ schemaVersion: "openpond.steeringProfilePublication.v1";
6245
+ id: string;
6246
+ revision: 1;
6247
+ teamId: string;
6248
+ ownerUserId: string;
6249
+ projectId: string | null;
6250
+ name: string;
6251
+ baseModel: {
6252
+ schemaVersion: "openpond.baseModelPreference.v1";
6253
+ modelId: string;
6254
+ revision: string | null;
6255
+ tokenizerRevision: string | null;
6256
+ chatTemplateHash: string | null;
6257
+ modelAssetId: string | null;
6258
+ source: "builtin" | "local" | "managed";
6259
+ };
6260
+ profile: {
6261
+ schemaVersion: "openpond.neuronSteeringProfile.v1";
6262
+ model: {
6263
+ schemaVersion: "openpond.neuronSteeringModel.v1";
6264
+ modelId: string;
6265
+ revision: string;
6266
+ configHash: string;
6267
+ weightsHash: string;
6268
+ tokenizerHash: string;
6269
+ weightIdentity: "torch_state_dict_sha256_v1";
6270
+ architecture: "dense_decoder";
6271
+ dtype: "bfloat16" | "float16" | "float32";
6272
+ quantization: "none";
6273
+ adapter: null;
6274
+ hiddenSize: number;
6275
+ intermediateSizes: number[];
6276
+ };
6277
+ hook: "mlp.down_proj.input";
6278
+ operation: "add";
6279
+ normalization: {
6280
+ mode: "baseline_prompt_residual_median";
6281
+ statistic: "midpoint_median_fp32";
6282
+ sample: "non_padding_prompt_after_position_zero";
6283
+ } | {
6284
+ mode: "fixed_residual_reference";
6285
+ calibration: {
6286
+ id: string;
6287
+ revision: number;
6288
+ contentHash: string;
6289
+ };
6290
+ };
6291
+ tokenScope: {
6292
+ phase: "decode_only" | "prompt_and_decode" | "prompt_only";
6293
+ positions: "after_position_zero" | "all_non_padding";
6294
+ };
6295
+ entries: {
6296
+ layer: number;
6297
+ neuron: number;
6298
+ dose: number;
6299
+ }[];
6300
+ contentHash: string;
6301
+ };
6302
+ source: {
6303
+ executionId: string;
6304
+ inputHash: string;
6305
+ runtimeHash: string;
6306
+ resultHash: string;
6307
+ variantId: string;
6308
+ };
6309
+ calibrationEvidence: {
6310
+ promptId: string;
6311
+ calibration: {
6312
+ layer: number;
6313
+ median: number;
6314
+ sampleCount: number;
6315
+ columnNorms: {
6316
+ neuron: number;
6317
+ norm: number;
6318
+ }[];
6319
+ }[];
6320
+ }[];
6321
+ createdAt: string;
6322
+ contentHash: string;
6323
+ };
6324
+ createdAt: string;
6325
+ contentHash: string;
6326
+ };
6327
+ control: {
6328
+ usage?: {
6329
+ schemaVersion: "openpond.managedServingUsage.v1";
6330
+ deploymentKey: string;
6331
+ reviewHash: string;
6332
+ price: {
6333
+ schemaVersion: "openpond.computeAppliedPrice.v1";
6334
+ version: string;
6335
+ profileHash: string;
6336
+ currency: "USD";
6337
+ unit: "resource_hour";
6338
+ hourlyUsd: string;
6339
+ service: "model_serving";
6340
+ };
6341
+ customerCapUsd: string | null;
6342
+ fundingState: "active" | "closed" | "exhausted" | "pending";
6343
+ stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
6344
+ startedAt: string | null;
6345
+ lastActivityAt: string | null;
6346
+ idleExpiresAt: string | null;
6347
+ billableStoppedAt: string | null;
6348
+ quantityMillis: number;
6349
+ chargedUsd: string;
6350
+ reservationId: string | null;
6351
+ } | undefined;
6352
+ schemaVersion: "openpond.steeringModelServingControl.v1";
6353
+ teamId: string;
6354
+ modelProjectId: string;
6355
+ versionHash: string;
6356
+ actorId: string;
6357
+ operationId: string;
6358
+ revision: number;
6359
+ defaultPublication: {
6360
+ id: string;
6361
+ revision: number;
6362
+ contentHash: string;
6363
+ } | null;
6364
+ desiredState: "active" | "stopped";
6365
+ phase: "active" | "failed" | "starting" | "stopped" | "stopping";
6366
+ capacityState: "pending" | "released" | "retiring" | "shared";
6367
+ modelId: string;
6368
+ poolId: string | null;
6369
+ binding: {
6370
+ id: string;
6371
+ revision: number;
6372
+ } | null;
6373
+ activeRequests: number;
6374
+ unsettledRequests: number;
6375
+ idleTimeoutSeconds: number;
6376
+ failureCode: string | null;
6377
+ updatedAt: string;
6378
+ };
6379
+ contentHash: string;
6380
+ }>;
6381
+ export declare function parseAndVerifySteeringModelServing(raw: unknown, expected: {
6382
+ teamId: string;
6383
+ modelProjectId: string;
6384
+ versionHash: string;
6385
+ }): Promise<{
6386
+ usageBilling?: {
6387
+ schemaVersion: "openpond.managedServingUsageReviewResult.v1";
6388
+ availability: "reviewable" | "unavailable";
6389
+ reason: string | null;
6390
+ review: {
6391
+ schemaVersion: "openpond.managedServingUsageReview.v1";
6392
+ teamId: string;
6393
+ modelProjectId: string;
6394
+ versionHash: string;
6395
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
6396
+ price: {
6397
+ schemaVersion: "openpond.computeAppliedPrice.v1";
6398
+ version: string;
6399
+ profileHash: string;
6400
+ currency: "USD";
6401
+ unit: "resource_hour";
6402
+ hourlyUsd: string;
6403
+ service: "model_serving";
6404
+ };
6405
+ runtimeHash: string;
6406
+ workerImageDigest: string;
6407
+ providerConfigurationHash: string;
6408
+ idleTimeoutSeconds: 300;
6409
+ rules: {
6410
+ billableStart: "provider_allocation";
6411
+ startupBillable: true;
6412
+ idleBillable: true;
6413
+ explicitStop: "logical_admission_closed";
6414
+ postTrainingReuseBillable: false;
6415
+ minimumBillableMillis: 0;
6416
+ tokenRetailUsd: "0.000000";
6417
+ };
6418
+ nativeControl: {
6419
+ protocol: "openpond.workerComputeControl.v1";
6420
+ executionLeaseMillis: 30000;
6421
+ stopHeadroomMillis: 60000;
6422
+ qualificationHash: string;
6423
+ };
6424
+ workDeadlineAt: string;
6425
+ expiresAt: string;
6426
+ contentHash: string;
6427
+ } | null;
6428
+ usage: {
6429
+ schemaVersion: "openpond.managedServingUsage.v1";
6430
+ deploymentKey: string;
6431
+ reviewHash: string;
6432
+ price: {
6433
+ schemaVersion: "openpond.computeAppliedPrice.v1";
6434
+ version: string;
6435
+ profileHash: string;
6436
+ currency: "USD";
6437
+ unit: "resource_hour";
6438
+ hourlyUsd: string;
6439
+ service: "model_serving";
6440
+ };
6441
+ customerCapUsd: string | null;
6442
+ fundingState: "active" | "closed" | "exhausted" | "pending";
6443
+ stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
6444
+ startedAt: string | null;
6445
+ lastActivityAt: string | null;
6446
+ idleExpiresAt: string | null;
6447
+ billableStoppedAt: string | null;
6448
+ quantityMillis: number;
6449
+ chargedUsd: string;
6450
+ reservationId: string | null;
6451
+ } | null;
6452
+ } | undefined;
6453
+ schemaVersion: "openpond.steeringModelServing.v1";
6454
+ teamId: string;
6455
+ modelProjectId: string;
6456
+ observedAt: string;
6457
+ version: {
6458
+ schemaVersion: "openpond.steeringModelVersion.v1";
6459
+ teamId: string;
6460
+ modelProjectId: string;
6461
+ portableProjectId: string;
6462
+ publication: {
6463
+ schemaVersion: "openpond.steeringProfilePublication.v1";
6464
+ id: string;
6465
+ revision: 1;
6466
+ teamId: string;
6467
+ ownerUserId: string;
6468
+ projectId: string | null;
6469
+ name: string;
6470
+ baseModel: {
6471
+ schemaVersion: "openpond.baseModelPreference.v1";
6472
+ modelId: string;
6473
+ revision: string | null;
6474
+ tokenizerRevision: string | null;
6475
+ chatTemplateHash: string | null;
6476
+ modelAssetId: string | null;
6477
+ source: "builtin" | "local" | "managed";
6478
+ };
6479
+ profile: {
6480
+ schemaVersion: "openpond.neuronSteeringProfile.v1";
6481
+ model: {
6482
+ schemaVersion: "openpond.neuronSteeringModel.v1";
6483
+ modelId: string;
6484
+ revision: string;
6485
+ configHash: string;
6486
+ weightsHash: string;
6487
+ tokenizerHash: string;
6488
+ weightIdentity: "torch_state_dict_sha256_v1";
6489
+ architecture: "dense_decoder";
6490
+ dtype: "bfloat16" | "float16" | "float32";
6491
+ quantization: "none";
6492
+ adapter: null;
6493
+ hiddenSize: number;
6494
+ intermediateSizes: number[];
6495
+ };
6496
+ hook: "mlp.down_proj.input";
6497
+ operation: "add";
6498
+ normalization: {
6499
+ mode: "baseline_prompt_residual_median";
6500
+ statistic: "midpoint_median_fp32";
6501
+ sample: "non_padding_prompt_after_position_zero";
6502
+ } | {
6503
+ mode: "fixed_residual_reference";
6504
+ calibration: {
6505
+ id: string;
6506
+ revision: number;
6507
+ contentHash: string;
6508
+ };
6509
+ };
6510
+ tokenScope: {
6511
+ phase: "decode_only" | "prompt_and_decode" | "prompt_only";
6512
+ positions: "after_position_zero" | "all_non_padding";
6513
+ };
6514
+ entries: {
6515
+ layer: number;
6516
+ neuron: number;
6517
+ dose: number;
6518
+ }[];
6519
+ contentHash: string;
6520
+ };
6521
+ source: {
5504
6522
  executionId: string;
5505
6523
  inputHash: string;
5506
6524
  runtimeHash: string;
@@ -5525,6 +6543,16 @@ export declare function parseAndVerifySteeringModelServingControl(raw: unknown,
5525
6543
  createdAt: string;
5526
6544
  contentHash: string;
5527
6545
  };
6546
+ defaultPublication: {
6547
+ id: string;
6548
+ revision: number;
6549
+ contentHash: string;
6550
+ } | null;
6551
+ availability: {
6552
+ state: "qualified" | "unavailable";
6553
+ reason: "calibration_unavailable" | "model_mismatch" | "profile_archived" | "qualified" | "runtime_unavailable";
6554
+ runtimeHash: string | null;
6555
+ };
5528
6556
  control: {
5529
6557
  usage?: {
5530
6558
  schemaVersion: "openpond.managedServingUsage.v1";
@@ -5576,57 +6604,9 @@ export declare function parseAndVerifySteeringModelServingControl(raw: unknown,
5576
6604
  idleTimeoutSeconds: number;
5577
6605
  failureCode: string | null;
5578
6606
  updatedAt: string;
5579
- };
5580
- contentHash: string;
5581
- }>;
5582
- export declare function parseAndVerifySteeringModelServing(raw: unknown, expected: {
5583
- teamId: string;
5584
- modelProjectId: string;
5585
- versionHash: string;
5586
- }): Promise<{
5587
- usageBilling?: {
5588
- schemaVersion: "openpond.managedServingUsageReviewResult.v1";
5589
- availability: "reviewable" | "unavailable";
5590
- reason: string | null;
5591
- review: {
5592
- schemaVersion: "openpond.managedServingUsageReview.v1";
5593
- teamId: string;
5594
- modelProjectId: string;
5595
- versionHash: string;
5596
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
5597
- price: {
5598
- schemaVersion: "openpond.computeAppliedPrice.v1";
5599
- version: string;
5600
- profileHash: string;
5601
- currency: "USD";
5602
- unit: "resource_hour";
5603
- hourlyUsd: string;
5604
- service: "model_serving";
5605
- };
5606
- runtimeHash: string;
5607
- workerImageDigest: string;
5608
- providerConfigurationHash: string;
5609
- idleTimeoutSeconds: 300;
5610
- rules: {
5611
- billableStart: "provider_allocation";
5612
- startupBillable: true;
5613
- idleBillable: true;
5614
- explicitStop: "logical_admission_closed";
5615
- postTrainingReuseBillable: false;
5616
- minimumBillableMillis: 0;
5617
- tokenRetailUsd: "0.000000";
5618
- };
5619
- nativeControl: {
5620
- protocol: "openpond.workerComputeControl.v1";
5621
- executionLeaseMillis: 30000;
5622
- stopHeadroomMillis: 60000;
5623
- qualificationHash: string;
5624
- };
5625
- workDeadlineAt: string;
5626
- expiresAt: string;
5627
- contentHash: string;
5628
- } | null;
5629
- usage: {
6607
+ } | null;
6608
+ cleanup: {
6609
+ usage?: {
5630
6610
  schemaVersion: "openpond.managedServingUsage.v1";
5631
6611
  deploymentKey: string;
5632
6612
  reviewHash: string;
@@ -5649,25 +6629,184 @@ export declare function parseAndVerifySteeringModelServing(raw: unknown, expecte
5649
6629
  quantityMillis: number;
5650
6630
  chargedUsd: string;
5651
6631
  reservationId: string | null;
6632
+ } | undefined;
6633
+ schemaVersion: "openpond.steeringModelServingControl.v1";
6634
+ teamId: string;
6635
+ modelProjectId: string;
6636
+ versionHash: string;
6637
+ actorId: string;
6638
+ operationId: string;
6639
+ revision: number;
6640
+ defaultPublication: {
6641
+ id: string;
6642
+ revision: number;
6643
+ contentHash: string;
5652
6644
  } | null;
5653
- } | undefined;
5654
- schemaVersion: "openpond.steeringModelServing.v1";
6645
+ desiredState: "active" | "stopped";
6646
+ phase: "active" | "failed" | "starting" | "stopped" | "stopping";
6647
+ capacityState: "pending" | "released" | "retiring" | "shared";
6648
+ modelId: string;
6649
+ poolId: string | null;
6650
+ binding: {
6651
+ id: string;
6652
+ revision: number;
6653
+ } | null;
6654
+ activeRequests: number;
6655
+ unsettledRequests: number;
6656
+ idleTimeoutSeconds: number;
6657
+ failureCode: string | null;
6658
+ updatedAt: string;
6659
+ }[];
6660
+ pools: {
6661
+ id: string;
6662
+ provider: string;
6663
+ state: "degraded" | "deleted" | "deleting" | "failed" | "provisioning" | "ready" | "requested";
6664
+ workersMin: number;
6665
+ workersMax: number;
6666
+ idleTimeoutSeconds: number;
6667
+ workerImageDigest: string | null;
6668
+ endpointRecorded: boolean;
6669
+ activeDeployments: number;
6670
+ activeBindings: number;
6671
+ activeRequests: number;
6672
+ unsettledRequests: number;
6673
+ retirementBlocked: boolean;
6674
+ }[];
6675
+ bindings: {
6676
+ id: string;
6677
+ revision: number;
6678
+ modelId: string;
6679
+ poolId: string;
6680
+ versionHash: string;
6681
+ }[];
6682
+ lastVerifiedInference: {
6683
+ schemaVersion: "openpond.steeringInferenceReceipt.v1";
6684
+ teamId: string;
6685
+ requestId: string;
6686
+ requestHash: string;
6687
+ selection: {
6688
+ schemaVersion: "openpond.resolvedSteeringSelection.v1";
6689
+ requested: "inherit" | "off" | "override";
6690
+ savedModel: {
6691
+ modelProjectId: string;
6692
+ versionHash: string;
6693
+ } | null;
6694
+ defaultPublication: {
6695
+ id: string;
6696
+ revision: number;
6697
+ contentHash: string;
6698
+ } | null;
6699
+ effectivePublication: {
6700
+ id: string;
6701
+ revision: number;
6702
+ contentHash: string;
6703
+ } | null;
6704
+ profileHash: string | null;
6705
+ modelHash: string;
6706
+ calibration: {
6707
+ id: string;
6708
+ revision: number;
6709
+ contentHash: string;
6710
+ } | null;
6711
+ };
6712
+ poolId: string;
6713
+ routingBinding: {
6714
+ id: string;
6715
+ revision: number;
6716
+ } | null;
6717
+ runtimeHash: string;
6718
+ workerImageDigest: string;
6719
+ engineGeneration: number;
6720
+ cacheNamespace: string;
6721
+ completedAt: string;
6722
+ contentHash: string;
6723
+ } | null;
6724
+ state: "active" | "inactive" | "retiring" | "starting" | "unavailable";
6725
+ contentHash: string;
6726
+ }>;
6727
+ export declare function parseAndVerifySavedModelServing(raw: unknown, expected: {
5655
6728
  teamId: string;
5656
6729
  modelProjectId: string;
5657
- observedAt: string;
5658
- version: {
5659
- schemaVersion: "openpond.steeringModelVersion.v1";
6730
+ versionHash: string;
6731
+ }): Promise<SavedModelServing>;
6732
+ export declare function createSavedModelServingClient(request: (path: string, init?: RequestInit) => Promise<unknown>): {
6733
+ savedModelServing(modelProjectId: string, raw: z.infer<typeof SavedModelServingQuerySchema>): Promise<{
6734
+ usageBilling?: {
6735
+ schemaVersion: "openpond.managedServingUsageReviewResult.v1";
6736
+ availability: "reviewable" | "unavailable";
6737
+ reason: string | null;
6738
+ review: {
6739
+ schemaVersion: "openpond.managedServingUsageReview.v1";
6740
+ teamId: string;
6741
+ modelProjectId: string;
6742
+ versionHash: string;
6743
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
6744
+ price: {
6745
+ schemaVersion: "openpond.computeAppliedPrice.v1";
6746
+ version: string;
6747
+ profileHash: string;
6748
+ currency: "USD";
6749
+ unit: "resource_hour";
6750
+ hourlyUsd: string;
6751
+ service: "model_serving";
6752
+ };
6753
+ runtimeHash: string;
6754
+ workerImageDigest: string;
6755
+ providerConfigurationHash: string;
6756
+ idleTimeoutSeconds: 300;
6757
+ rules: {
6758
+ billableStart: "provider_allocation";
6759
+ startupBillable: true;
6760
+ idleBillable: true;
6761
+ explicitStop: "logical_admission_closed";
6762
+ postTrainingReuseBillable: false;
6763
+ minimumBillableMillis: 0;
6764
+ tokenRetailUsd: "0.000000";
6765
+ };
6766
+ nativeControl: {
6767
+ protocol: "openpond.workerComputeControl.v1";
6768
+ executionLeaseMillis: 30000;
6769
+ stopHeadroomMillis: 60000;
6770
+ qualificationHash: string;
6771
+ };
6772
+ workDeadlineAt: string;
6773
+ expiresAt: string;
6774
+ contentHash: string;
6775
+ } | null;
6776
+ usage: {
6777
+ schemaVersion: "openpond.managedServingUsage.v1";
6778
+ deploymentKey: string;
6779
+ reviewHash: string;
6780
+ price: {
6781
+ schemaVersion: "openpond.computeAppliedPrice.v1";
6782
+ version: string;
6783
+ profileHash: string;
6784
+ currency: "USD";
6785
+ unit: "resource_hour";
6786
+ hourlyUsd: string;
6787
+ service: "model_serving";
6788
+ };
6789
+ customerCapUsd: string | null;
6790
+ fundingState: "active" | "closed" | "exhausted" | "pending";
6791
+ stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
6792
+ startedAt: string | null;
6793
+ lastActivityAt: string | null;
6794
+ idleExpiresAt: string | null;
6795
+ billableStoppedAt: string | null;
6796
+ quantityMillis: number;
6797
+ chargedUsd: string;
6798
+ reservationId: string | null;
6799
+ } | null;
6800
+ } | undefined;
6801
+ schemaVersion: "openpond.neuronTrainingModelServing.v1";
5660
6802
  teamId: string;
5661
6803
  modelProjectId: string;
5662
- portableProjectId: string;
5663
- publication: {
5664
- schemaVersion: "openpond.steeringProfilePublication.v1";
5665
- id: string;
5666
- revision: 1;
6804
+ observedAt: string;
6805
+ version: {
5667
6806
  teamId: string;
5668
6807
  ownerUserId: string;
5669
- projectId: string | null;
5670
- name: string;
6808
+ modelProjectId: string;
6809
+ portableProjectId: string;
5671
6810
  baseModel: {
5672
6811
  schemaVersion: "openpond.baseModelPreference.v1";
5673
6812
  modelId: string;
@@ -5677,8 +6816,16 @@ export declare function parseAndVerifySteeringModelServing(raw: unknown, expecte
5677
6816
  modelAssetId: string | null;
5678
6817
  source: "builtin" | "local" | "managed";
5679
6818
  };
5680
- profile: {
5681
- schemaVersion: "openpond.neuronSteeringProfile.v1";
6819
+ source: {
6820
+ executionId: string;
6821
+ inputHash: string;
6822
+ runtimeHash: string;
6823
+ resultHash: string;
6824
+ };
6825
+ createdAt: string;
6826
+ schemaVersion: "openpond.neuronTrainingModelVersion.v1";
6827
+ request: {
6828
+ schemaVersion: "openpond.selectiveNeuronTrainingRequest.v1";
5682
6829
  model: {
5683
6830
  schemaVersion: "openpond.neuronSteeringModel.v1";
5684
6831
  modelId: string;
@@ -5694,244 +6841,360 @@ export declare function parseAndVerifySteeringModelServing(raw: unknown, expecte
5694
6841
  hiddenSize: number;
5695
6842
  intermediateSizes: number[];
5696
6843
  };
5697
- hook: "mlp.down_proj.input";
5698
- operation: "add";
5699
- normalization: {
5700
- mode: "baseline_prompt_residual_median";
5701
- statistic: "midpoint_median_fp32";
5702
- sample: "non_padding_prompt_after_position_zero";
5703
- } | {
5704
- mode: "fixed_residual_reference";
5705
- calibration: {
5706
- id: string;
5707
- revision: number;
6844
+ data: {
6845
+ target: {
6846
+ batch: {
6847
+ id: string;
6848
+ contentHash: string;
6849
+ revision: number;
6850
+ };
6851
+ examplesSha256: string;
6852
+ encodingHash: string;
6853
+ };
6854
+ background: {
6855
+ batch: {
6856
+ id: string;
6857
+ contentHash: string;
6858
+ revision: number;
6859
+ };
6860
+ examplesSha256: string;
6861
+ encodingHash: string;
6862
+ domain: string;
6863
+ }[];
6864
+ preservation: {
6865
+ batch: {
6866
+ id: string;
6867
+ contentHash: string;
6868
+ revision: number;
6869
+ };
6870
+ examplesSha256: string;
6871
+ encodingHash: string;
6872
+ } | null;
6873
+ };
6874
+ selection: {
6875
+ count: number;
6876
+ span: "prompt" | "reply_prediction" | "reply_start";
6877
+ backgroundStatistic: "max_domains" | "mean_domains";
6878
+ maximumBackgroundTargetRatio: number;
6879
+ gradientExamples: number;
6880
+ explicitCoordinates: {
6881
+ layer: number;
6882
+ neuron: number;
6883
+ }[] | null;
6884
+ };
6885
+ training: {
6886
+ learningRate: number;
6887
+ maxSteps: number;
6888
+ gradientAccumulationSteps: number;
6889
+ maxSequenceLength: number;
6890
+ preservationWeight: number;
6891
+ preservationExamplesPerStep: number;
6892
+ seed: number;
6893
+ maxDurationSeconds: number;
6894
+ maxCheckpointBytes: number;
6895
+ maximumForwardTokenWork: number;
6896
+ };
6897
+ parentArtifact: {
6898
+ id: string;
6899
+ contentHash: string;
6900
+ selectionHash: string;
6901
+ payloadSha256: string;
6902
+ mode: "frozen_parent_fresh_residual_adam_v1";
6903
+ } | null;
6904
+ };
6905
+ artifact: {
6906
+ id: string;
6907
+ contentHash: string;
6908
+ manifest: {
6909
+ schemaVersion: "openpond.neuronTrainingArtifact.v1";
6910
+ method: "selective_neuron_training";
6911
+ algorithm: {
6912
+ implementation: "openpond_qwen3_selective_columns_v1";
6913
+ upstream: "changjonathanc/neuron-tuning";
6914
+ revision: "8a55f3159f735eb0823d7a894f67f632bf568bb3";
6915
+ license: "Apache-2.0";
6916
+ hook: "mlp.down_proj";
6917
+ operation: "output_plus_selected_input_times_delta_v1";
6918
+ parameterization: "column_gain_rms_direction_v1";
6919
+ activityQuantile: 0.9;
6920
+ backgroundFloor: 0.000001;
6921
+ gradientSubsetSeed: 0;
6922
+ optimizer: "Adam";
6923
+ betas: [0.9, 0.999];
6924
+ epsilon: 1e-8;
6925
+ weightDecay: 0;
6926
+ gradientClipNorm: 1;
6927
+ batchSize: 1;
6928
+ parameterDtype: "float32";
6929
+ resume: "unsupported";
6930
+ };
6931
+ pins: {
6932
+ baseModel: {
6933
+ schemaVersion: "openpond.neuronSteeringModel.v1";
6934
+ modelId: string;
6935
+ revision: string;
6936
+ configHash: string;
6937
+ weightsHash: string;
6938
+ tokenizerHash: string;
6939
+ weightIdentity: "torch_state_dict_sha256_v1";
6940
+ architecture: "dense_decoder";
6941
+ dtype: "bfloat16" | "float16" | "float32";
6942
+ quantization: "none";
6943
+ adapter: null;
6944
+ hiddenSize: number;
6945
+ intermediateSizes: number[];
6946
+ };
6947
+ inputHash: string;
6948
+ data: {
6949
+ target: {
6950
+ batch: {
6951
+ id: string;
6952
+ contentHash: string;
6953
+ revision: number;
6954
+ };
6955
+ examplesSha256: string;
6956
+ encodingHash: string;
6957
+ };
6958
+ background: {
6959
+ batch: {
6960
+ id: string;
6961
+ contentHash: string;
6962
+ revision: number;
6963
+ };
6964
+ examplesSha256: string;
6965
+ encodingHash: string;
6966
+ domain: string;
6967
+ }[];
6968
+ preservation: {
6969
+ batch: {
6970
+ id: string;
6971
+ contentHash: string;
6972
+ revision: number;
6973
+ };
6974
+ examplesSha256: string;
6975
+ encodingHash: string;
6976
+ } | null;
6977
+ };
6978
+ dataHash: string;
6979
+ selectionConfigHash: string;
6980
+ trainingConfigHash: string;
6981
+ runtimeHash: string;
6982
+ parentArtifactHash: string | null;
6983
+ };
6984
+ selection: {
6985
+ schemaVersion: "openpond.neuronTrainingSelectionResult.v1";
6986
+ modelHash: string;
6987
+ dataHash: string;
6988
+ selectionConfigHash: string;
6989
+ preparedRowsHash: string;
6990
+ source: "automatic" | "explicit";
6991
+ targetExampleIds: string[];
6992
+ eligibleCount: number;
6993
+ entries: {
6994
+ layer: number;
6995
+ neuron: number;
6996
+ targetMeanAbsolute: number;
6997
+ backgroundMeanAbsolute: number;
6998
+ backgroundTargetRatio: number;
6999
+ gradientNorm: number;
7000
+ score: number;
7001
+ targetActivityThreshold: number;
7002
+ backgroundByDomain: {
7003
+ domainIndex: number;
7004
+ meanAbsolute: number;
7005
+ }[];
7006
+ }[];
5708
7007
  contentHash: string;
5709
7008
  };
7009
+ continuation?: {
7010
+ mode: "frozen_parent_fresh_residual_adam_v1";
7011
+ selectionProvenance: "inherited_parent_observations";
7012
+ parameterAnchor: "original_dense_base_columns_v1";
7013
+ parentArtifactHash: string;
7014
+ parentSelectionHash: string;
7015
+ parentPayloadSha256: string;
7016
+ parentPatchStateSha256: string;
7017
+ initialPatchStateSha256: string;
7018
+ finalPatchStateSha256: string;
7019
+ installedBeforeOptimizer: true;
7020
+ optimizerState: "fresh";
7021
+ } | undefined;
7022
+ payload: {
7023
+ path: "patch.safetensors";
7024
+ sha256: string;
7025
+ sizeBytes: number;
7026
+ tensors: {
7027
+ name: string;
7028
+ dtype: "F32" | "I64";
7029
+ shape: number[];
7030
+ }[];
7031
+ };
7032
+ contentHash: string;
5710
7033
  };
5711
- tokenScope: {
5712
- phase: "decode_only" | "prompt_and_decode" | "prompt_only";
5713
- positions: "after_position_zero" | "all_non_padding";
5714
- };
5715
- entries: {
5716
- layer: number;
5717
- neuron: number;
5718
- dose: number;
7034
+ files: {
7035
+ path: "manifest.json" | "patch.safetensors";
7036
+ artifactId: string;
7037
+ sha256: string;
7038
+ sizeBytes: number;
5719
7039
  }[];
5720
- contentHash: string;
5721
- };
5722
- source: {
5723
- executionId: string;
5724
- inputHash: string;
5725
- runtimeHash: string;
5726
- resultHash: string;
5727
- variantId: string;
5728
7040
  };
5729
- calibrationEvidence: {
5730
- promptId: string;
5731
- calibration: {
5732
- layer: number;
5733
- median: number;
5734
- sampleCount: number;
5735
- columnNorms: {
5736
- neuron: number;
5737
- norm: number;
5738
- }[];
5739
- }[];
5740
- }[];
5741
- createdAt: string;
5742
7041
  contentHash: string;
5743
7042
  };
5744
- createdAt: string;
5745
- contentHash: string;
5746
- };
5747
- defaultPublication: {
5748
- id: string;
5749
- revision: number;
5750
- contentHash: string;
5751
- } | null;
5752
- availability: {
5753
- state: "qualified" | "unavailable";
5754
- reason: "calibration_unavailable" | "model_mismatch" | "profile_archived" | "qualified" | "runtime_unavailable";
5755
- runtimeHash: string | null;
5756
- };
5757
- control: {
5758
- usage?: {
5759
- schemaVersion: "openpond.managedServingUsage.v1";
5760
- deploymentKey: string;
5761
- reviewHash: string;
5762
- price: {
5763
- schemaVersion: "openpond.computeAppliedPrice.v1";
5764
- version: string;
5765
- profileHash: string;
5766
- currency: "USD";
5767
- unit: "resource_hour";
5768
- hourlyUsd: string;
5769
- service: "model_serving";
5770
- };
5771
- customerCapUsd: string | null;
5772
- fundingState: "active" | "closed" | "exhausted" | "pending";
5773
- stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
5774
- startedAt: string | null;
5775
- lastActivityAt: string | null;
5776
- idleExpiresAt: string | null;
5777
- billableStoppedAt: string | null;
5778
- quantityMillis: number;
5779
- chargedUsd: string;
5780
- reservationId: string | null;
5781
- } | undefined;
5782
- schemaVersion: "openpond.steeringModelServingControl.v1";
5783
- teamId: string;
5784
- modelProjectId: string;
5785
- versionHash: string;
5786
- actorId: string;
5787
- operationId: string;
5788
- revision: number;
5789
- defaultPublication: {
5790
- id: string;
5791
- revision: number;
5792
- contentHash: string;
5793
- } | null;
5794
- desiredState: "active" | "stopped";
5795
- phase: "active" | "failed" | "starting" | "stopped" | "stopping";
5796
- capacityState: "pending" | "released" | "retiring" | "shared";
5797
- modelId: string;
5798
- poolId: string | null;
5799
- binding: {
5800
- id: string;
5801
- revision: number;
5802
- } | null;
5803
- activeRequests: number;
5804
- unsettledRequests: number;
5805
- idleTimeoutSeconds: number;
5806
- failureCode: string | null;
5807
- updatedAt: string;
5808
- } | null;
5809
- cleanup: {
5810
- usage?: {
5811
- schemaVersion: "openpond.managedServingUsage.v1";
5812
- deploymentKey: string;
5813
- reviewHash: string;
5814
- price: {
5815
- schemaVersion: "openpond.computeAppliedPrice.v1";
5816
- version: string;
5817
- profileHash: string;
5818
- currency: "USD";
5819
- unit: "resource_hour";
5820
- hourlyUsd: string;
5821
- service: "model_serving";
5822
- };
5823
- customerCapUsd: string | null;
5824
- fundingState: "active" | "closed" | "exhausted" | "pending";
5825
- stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
5826
- startedAt: string | null;
5827
- lastActivityAt: string | null;
5828
- idleExpiresAt: string | null;
5829
- billableStoppedAt: string | null;
5830
- quantityMillis: number;
5831
- chargedUsd: string;
5832
- reservationId: string | null;
5833
- } | undefined;
5834
- schemaVersion: "openpond.steeringModelServingControl.v1";
5835
- teamId: string;
5836
- modelProjectId: string;
5837
- versionHash: string;
5838
- actorId: string;
5839
- operationId: string;
5840
- revision: number;
5841
- defaultPublication: {
5842
- id: string;
5843
- revision: number;
5844
- contentHash: string;
5845
- } | null;
5846
- desiredState: "active" | "stopped";
5847
- phase: "active" | "failed" | "starting" | "stopped" | "stopping";
5848
- capacityState: "pending" | "released" | "retiring" | "shared";
5849
- modelId: string;
5850
- poolId: string | null;
5851
- binding: {
5852
- id: string;
7043
+ availability: {
7044
+ state: "qualified" | "unavailable";
7045
+ reason: "artifact_unavailable" | "model_mismatch" | "qualified" | "runtime_unavailable";
7046
+ runtimeHash: string | null;
7047
+ };
7048
+ control: {
7049
+ usage?: {
7050
+ schemaVersion: "openpond.managedServingUsage.v1";
7051
+ deploymentKey: string;
7052
+ reviewHash: string;
7053
+ price: {
7054
+ schemaVersion: "openpond.computeAppliedPrice.v1";
7055
+ version: string;
7056
+ profileHash: string;
7057
+ currency: "USD";
7058
+ unit: "resource_hour";
7059
+ hourlyUsd: string;
7060
+ service: "model_serving";
7061
+ };
7062
+ customerCapUsd: string | null;
7063
+ fundingState: "active" | "closed" | "exhausted" | "pending";
7064
+ stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
7065
+ startedAt: string | null;
7066
+ lastActivityAt: string | null;
7067
+ idleExpiresAt: string | null;
7068
+ billableStoppedAt: string | null;
7069
+ quantityMillis: number;
7070
+ chargedUsd: string;
7071
+ reservationId: string | null;
7072
+ } | undefined;
7073
+ schemaVersion: "openpond.neuronTrainingModelServingControl.v1";
7074
+ teamId: string;
7075
+ modelProjectId: string;
7076
+ versionHash: string;
7077
+ actorId: string;
7078
+ operationId: string;
5853
7079
  revision: number;
5854
- } | null;
5855
- activeRequests: number;
5856
- unsettledRequests: number;
5857
- idleTimeoutSeconds: number;
5858
- failureCode: string | null;
5859
- updatedAt: string;
5860
- }[];
5861
- pools: {
5862
- id: string;
5863
- provider: string;
5864
- state: "degraded" | "deleted" | "deleting" | "failed" | "provisioning" | "ready" | "requested";
5865
- workersMin: number;
5866
- workersMax: number;
5867
- idleTimeoutSeconds: number;
5868
- workerImageDigest: string | null;
5869
- endpointRecorded: boolean;
5870
- activeDeployments: number;
5871
- activeBindings: number;
5872
- activeRequests: number;
5873
- unsettledRequests: number;
5874
- retirementBlocked: boolean;
5875
- }[];
5876
- bindings: {
5877
- id: string;
5878
- revision: number;
5879
- modelId: string;
5880
- poolId: string;
5881
- versionHash: string;
5882
- }[];
5883
- lastVerifiedInference: {
5884
- schemaVersion: "openpond.steeringInferenceReceipt.v1";
5885
- teamId: string;
5886
- requestId: string;
5887
- requestHash: string;
5888
- selection: {
5889
- schemaVersion: "openpond.resolvedSteeringSelection.v1";
5890
- requested: "inherit" | "off" | "override";
5891
- savedModel: {
5892
- modelProjectId: string;
5893
- versionHash: string;
5894
- } | null;
5895
- defaultPublication: {
5896
- id: string;
5897
- revision: number;
5898
- contentHash: string;
5899
- } | null;
5900
- effectivePublication: {
7080
+ desiredState: "active" | "stopped";
7081
+ phase: "active" | "failed" | "starting" | "stopped" | "stopping";
7082
+ capacityState: "pending" | "released" | "retiring" | "shared";
7083
+ modelId: string;
7084
+ poolId: string | null;
7085
+ binding: {
5901
7086
  id: string;
5902
7087
  revision: number;
5903
- contentHash: string;
5904
7088
  } | null;
5905
- profileHash: string | null;
5906
- modelHash: string;
5907
- calibration: {
7089
+ activeRequests: number;
7090
+ unsettledRequests: number;
7091
+ idleTimeoutSeconds: number;
7092
+ failureCode: string | null;
7093
+ updatedAt: string;
7094
+ } | null;
7095
+ cleanup: {
7096
+ usage?: {
7097
+ schemaVersion: "openpond.managedServingUsage.v1";
7098
+ deploymentKey: string;
7099
+ reviewHash: string;
7100
+ price: {
7101
+ schemaVersion: "openpond.computeAppliedPrice.v1";
7102
+ version: string;
7103
+ profileHash: string;
7104
+ currency: "USD";
7105
+ unit: "resource_hour";
7106
+ hourlyUsd: string;
7107
+ service: "model_serving";
7108
+ };
7109
+ customerCapUsd: string | null;
7110
+ fundingState: "active" | "closed" | "exhausted" | "pending";
7111
+ stopReason: "cap_reached" | "control_expired" | "credit_exhausted" | "explicit_stop" | "idle_timeout" | "member_cap_reached" | "native_unavailable" | "policy_changed" | "work_deadline" | null;
7112
+ startedAt: string | null;
7113
+ lastActivityAt: string | null;
7114
+ idleExpiresAt: string | null;
7115
+ billableStoppedAt: string | null;
7116
+ quantityMillis: number;
7117
+ chargedUsd: string;
7118
+ reservationId: string | null;
7119
+ } | undefined;
7120
+ schemaVersion: "openpond.neuronTrainingModelServingControl.v1";
7121
+ teamId: string;
7122
+ modelProjectId: string;
7123
+ versionHash: string;
7124
+ actorId: string;
7125
+ operationId: string;
7126
+ revision: number;
7127
+ desiredState: "active" | "stopped";
7128
+ phase: "active" | "failed" | "starting" | "stopped" | "stopping";
7129
+ capacityState: "pending" | "released" | "retiring" | "shared";
7130
+ modelId: string;
7131
+ poolId: string | null;
7132
+ binding: {
5908
7133
  id: string;
5909
7134
  revision: number;
5910
- contentHash: string;
5911
7135
  } | null;
5912
- };
5913
- poolId: string;
5914
- routingBinding: {
7136
+ activeRequests: number;
7137
+ unsettledRequests: number;
7138
+ idleTimeoutSeconds: number;
7139
+ failureCode: string | null;
7140
+ updatedAt: string;
7141
+ }[];
7142
+ pools: {
7143
+ id: string;
7144
+ provider: string;
7145
+ state: "degraded" | "deleted" | "deleting" | "failed" | "provisioning" | "ready" | "requested";
7146
+ workersMin: number;
7147
+ workersMax: number;
7148
+ idleTimeoutSeconds: number;
7149
+ workerImageDigest: string | null;
7150
+ endpointRecorded: boolean;
7151
+ activeDeployments: number;
7152
+ activeBindings: number;
7153
+ activeRequests: number;
7154
+ unsettledRequests: number;
7155
+ retirementBlocked: boolean;
7156
+ }[];
7157
+ bindings: {
5915
7158
  id: string;
5916
7159
  revision: number;
7160
+ modelId: string;
7161
+ poolId: string;
7162
+ versionHash: string;
7163
+ }[];
7164
+ lastVerifiedInference: {
7165
+ schemaVersion: "openpond.weightModelInferenceReceipt.v1";
7166
+ teamId: string;
7167
+ requestId: string;
7168
+ requestHash: string;
7169
+ selection: {
7170
+ schemaVersion: "openpond.resolvedWeightModelSelection.v1";
7171
+ method: "alphaedit" | "selective_neuron_training" | "weight_space_programming";
7172
+ savedModel: {
7173
+ modelProjectId: string;
7174
+ versionHash: string;
7175
+ };
7176
+ artifact: {
7177
+ id: string;
7178
+ contentHash: string;
7179
+ manifestSha256: string;
7180
+ };
7181
+ modelHash: string;
7182
+ };
7183
+ poolId: string;
7184
+ routingBinding: {
7185
+ id: string;
7186
+ revision: number;
7187
+ };
7188
+ runtimeHash: string;
7189
+ workerImageDigest: string;
7190
+ engineGeneration: number;
7191
+ cacheNamespace: string;
7192
+ completedAt: string;
7193
+ contentHash: string;
5917
7194
  } | null;
5918
- runtimeHash: string;
5919
- workerImageDigest: string;
5920
- engineGeneration: number;
5921
- cacheNamespace: string;
5922
- completedAt: string;
7195
+ state: "active" | "inactive" | "retiring" | "starting" | "unavailable";
5923
7196
  contentHash: string;
5924
- } | null;
5925
- state: "active" | "inactive" | "retiring" | "starting" | "unavailable";
5926
- contentHash: string;
5927
- }>;
5928
- export declare function parseAndVerifySavedModelServing(raw: unknown, expected: {
5929
- teamId: string;
5930
- modelProjectId: string;
5931
- versionHash: string;
5932
- }): Promise<SavedModelServing>;
5933
- export declare function createSavedModelServingClient(request: (path: string, init?: RequestInit) => Promise<unknown>): {
5934
- savedModelServing(modelProjectId: string, raw: z.infer<typeof SavedModelServingQuerySchema>): Promise<{
7197
+ } | {
5935
7198
  usageBilling?: {
5936
7199
  schemaVersion: "openpond.managedServingUsageReviewResult.v1";
5937
7200
  availability: "reviewable" | "unavailable";
@@ -5941,7 +7204,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
5941
7204
  teamId: string;
5942
7205
  modelProjectId: string;
5943
7206
  versionHash: string;
5944
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
7207
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
5945
7208
  price: {
5946
7209
  schemaVersion: "openpond.computeAppliedPrice.v1";
5947
7210
  version: string;
@@ -6274,7 +7537,6 @@ export declare function createSavedModelServingClient(request: (path: string, in
6274
7537
  contentHash: string;
6275
7538
  } | {
6276
7539
  serverlessReview?: {
6277
- schemaVersion: "openpond.serverlessServingReview.v1";
6278
7540
  teamId: string;
6279
7541
  modelProjectId: string;
6280
7542
  versionHash: string;
@@ -6294,6 +7556,11 @@ export declare function createSavedModelServingClient(request: (path: string, in
6294
7556
  hourlyUsd: string;
6295
7557
  service: "model_serving";
6296
7558
  };
7559
+ workerIdleTimeoutSeconds: 5;
7560
+ maximumRequestMillis: 540000;
7561
+ expiresAt: string;
7562
+ contentHash: string;
7563
+ schemaVersion: "openpond.serverlessServingReview.v1";
6297
7564
  rules: {
6298
7565
  quantity: "allocated_engine_milliseconds";
6299
7566
  allocation: "equal_billing_principal_then_request";
@@ -6305,10 +7572,86 @@ export declare function createSavedModelServingClient(request: (path: string, in
6305
7572
  tokenRetailUsd: "0.000000";
6306
7573
  minimumBillableMillis: 0;
6307
7574
  };
7575
+ } | {
7576
+ teamId: string;
7577
+ modelProjectId: string;
7578
+ versionHash: string;
7579
+ artifact: {
7580
+ id: string;
7581
+ contentHash: string;
7582
+ };
7583
+ baseProfileId: string;
7584
+ workerImageDigest: string;
7585
+ providerConfigurationHash: string;
7586
+ price: {
7587
+ schemaVersion: "openpond.computeAppliedPrice.v1";
7588
+ version: string;
7589
+ profileHash: string;
7590
+ currency: "USD";
7591
+ unit: "resource_hour";
7592
+ hourlyUsd: string;
7593
+ service: "model_serving";
7594
+ };
6308
7595
  workerIdleTimeoutSeconds: 5;
6309
7596
  maximumRequestMillis: 540000;
6310
7597
  expiresAt: string;
6311
7598
  contentHash: string;
7599
+ schemaVersion: "openpond.serverlessServingReview.v2";
7600
+ rules: {
7601
+ quantity: "allocated_worker_milliseconds";
7602
+ allocation: "equal_billing_principal_then_request";
7603
+ startupBillable: true;
7604
+ idleBillable: true;
7605
+ cleanupBillable: true;
7606
+ queueBillable: false;
7607
+ failure: "observed_worker_runtime";
7608
+ cancellation: "until_worker_stop";
7609
+ tokenRetailUsd: "0.000000";
7610
+ minimumBillableMillis: 0;
7611
+ supplierRounding: "ceil_worker_lifetime_second_once";
7612
+ };
7613
+ } | {
7614
+ teamId: string;
7615
+ modelProjectId: string;
7616
+ versionHash: string;
7617
+ artifact: {
7618
+ id: string;
7619
+ contentHash: string;
7620
+ };
7621
+ baseProfileId: string;
7622
+ workerImageDigest: string;
7623
+ providerConfigurationHash: string;
7624
+ price: {
7625
+ schemaVersion: "openpond.computeAppliedPrice.v1";
7626
+ version: string;
7627
+ profileHash: string;
7628
+ currency: "USD";
7629
+ unit: "resource_hour";
7630
+ hourlyUsd: string;
7631
+ service: "model_serving";
7632
+ };
7633
+ maximumRequestMillis: 540000;
7634
+ expiresAt: string;
7635
+ contentHash: string;
7636
+ rules: {
7637
+ quantity: "allocated_worker_milliseconds";
7638
+ allocation: "equal_billing_principal_then_request";
7639
+ startupBillable: true;
7640
+ idleBillable: true;
7641
+ cleanupBillable: true;
7642
+ queueBillable: false;
7643
+ failure: "observed_worker_runtime";
7644
+ cancellation: "until_worker_stop";
7645
+ tokenRetailUsd: "0.000000";
7646
+ minimumBillableMillis: 0;
7647
+ supplierRounding: "ceil_worker_lifetime_second_once";
7648
+ };
7649
+ schemaVersion: "openpond.serverlessServingReview.v3";
7650
+ workerIdleTimeoutSeconds: 5 | 60;
7651
+ hardware?: {
7652
+ selection: "automatic";
7653
+ gpuTypeIds: string[];
7654
+ } | undefined;
6312
7655
  } | null | undefined;
6313
7656
  usageBilling?: {
6314
7657
  schemaVersion: "openpond.managedServingUsageReviewResult.v1";
@@ -6319,7 +7662,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
6319
7662
  teamId: string;
6320
7663
  modelProjectId: string;
6321
7664
  versionHash: string;
6322
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
7665
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
6323
7666
  price: {
6324
7667
  schemaVersion: "openpond.computeAppliedPrice.v1";
6325
7668
  version: string;
@@ -6671,7 +8014,6 @@ export declare function createSavedModelServingClient(request: (path: string, in
6671
8014
  schemaVersion: "openpond.serverlessServing.v1";
6672
8015
  ownerKey: string;
6673
8016
  review: {
6674
- schemaVersion: "openpond.serverlessServingReview.v1";
6675
8017
  teamId: string;
6676
8018
  modelProjectId: string;
6677
8019
  versionHash: string;
@@ -6691,6 +8033,11 @@ export declare function createSavedModelServingClient(request: (path: string, in
6691
8033
  hourlyUsd: string;
6692
8034
  service: "model_serving";
6693
8035
  };
8036
+ workerIdleTimeoutSeconds: 5;
8037
+ maximumRequestMillis: 540000;
8038
+ expiresAt: string;
8039
+ contentHash: string;
8040
+ schemaVersion: "openpond.serverlessServingReview.v1";
6694
8041
  rules: {
6695
8042
  quantity: "allocated_engine_milliseconds";
6696
8043
  allocation: "equal_billing_principal_then_request";
@@ -6702,10 +8049,86 @@ export declare function createSavedModelServingClient(request: (path: string, in
6702
8049
  tokenRetailUsd: "0.000000";
6703
8050
  minimumBillableMillis: 0;
6704
8051
  };
8052
+ } | {
8053
+ teamId: string;
8054
+ modelProjectId: string;
8055
+ versionHash: string;
8056
+ artifact: {
8057
+ id: string;
8058
+ contentHash: string;
8059
+ };
8060
+ baseProfileId: string;
8061
+ workerImageDigest: string;
8062
+ providerConfigurationHash: string;
8063
+ price: {
8064
+ schemaVersion: "openpond.computeAppliedPrice.v1";
8065
+ version: string;
8066
+ profileHash: string;
8067
+ currency: "USD";
8068
+ unit: "resource_hour";
8069
+ hourlyUsd: string;
8070
+ service: "model_serving";
8071
+ };
6705
8072
  workerIdleTimeoutSeconds: 5;
6706
8073
  maximumRequestMillis: 540000;
6707
8074
  expiresAt: string;
6708
8075
  contentHash: string;
8076
+ schemaVersion: "openpond.serverlessServingReview.v2";
8077
+ rules: {
8078
+ quantity: "allocated_worker_milliseconds";
8079
+ allocation: "equal_billing_principal_then_request";
8080
+ startupBillable: true;
8081
+ idleBillable: true;
8082
+ cleanupBillable: true;
8083
+ queueBillable: false;
8084
+ failure: "observed_worker_runtime";
8085
+ cancellation: "until_worker_stop";
8086
+ tokenRetailUsd: "0.000000";
8087
+ minimumBillableMillis: 0;
8088
+ supplierRounding: "ceil_worker_lifetime_second_once";
8089
+ };
8090
+ } | {
8091
+ teamId: string;
8092
+ modelProjectId: string;
8093
+ versionHash: string;
8094
+ artifact: {
8095
+ id: string;
8096
+ contentHash: string;
8097
+ };
8098
+ baseProfileId: string;
8099
+ workerImageDigest: string;
8100
+ providerConfigurationHash: string;
8101
+ price: {
8102
+ schemaVersion: "openpond.computeAppliedPrice.v1";
8103
+ version: string;
8104
+ profileHash: string;
8105
+ currency: "USD";
8106
+ unit: "resource_hour";
8107
+ hourlyUsd: string;
8108
+ service: "model_serving";
8109
+ };
8110
+ maximumRequestMillis: 540000;
8111
+ expiresAt: string;
8112
+ contentHash: string;
8113
+ rules: {
8114
+ quantity: "allocated_worker_milliseconds";
8115
+ allocation: "equal_billing_principal_then_request";
8116
+ startupBillable: true;
8117
+ idleBillable: true;
8118
+ cleanupBillable: true;
8119
+ queueBillable: false;
8120
+ failure: "observed_worker_runtime";
8121
+ cancellation: "until_worker_stop";
8122
+ tokenRetailUsd: "0.000000";
8123
+ minimumBillableMillis: 0;
8124
+ supplierRounding: "ceil_worker_lifetime_second_once";
8125
+ };
8126
+ schemaVersion: "openpond.serverlessServingReview.v3";
8127
+ workerIdleTimeoutSeconds: 5 | 60;
8128
+ hardware?: {
8129
+ selection: "automatic";
8130
+ gpuTypeIds: string[];
8131
+ } | undefined;
6709
8132
  };
6710
8133
  customerCapUsd: string | null;
6711
8134
  state: "active" | "closed" | "stopping";
@@ -6713,6 +8136,20 @@ export declare function createSavedModelServingClient(request: (path: string, in
6713
8136
  chargedUsd: string;
6714
8137
  reservedUsd: string;
6715
8138
  supplierCostStatus: "pending" | "reconciled";
8139
+ usage?: {
8140
+ mode: "periodic_actual_usage";
8141
+ phase: "closed" | "running" | "starting" | "stopping" | "waiting_capacity" | "waiting_funding" | "waiting_platform";
8142
+ ratedUsd: string;
8143
+ chargedUsd: string;
8144
+ prepaidDebitedUsd: string;
8145
+ includedUsageUsd: string;
8146
+ pendingEvidence: boolean;
8147
+ lastEvidenceAt: string | null;
8148
+ lastDebitAt: string | null;
8149
+ nextDebitAt: string | null;
8150
+ retryAt?: string | null | undefined;
8151
+ stopReason: string | null;
8152
+ } | undefined;
6716
8153
  } | undefined;
6717
8154
  usage?: {
6718
8155
  schemaVersion: "openpond.managedServingUsage.v1";
@@ -6764,7 +8201,42 @@ export declare function createSavedModelServingClient(request: (path: string, in
6764
8201
  schemaVersion: "openpond.serverlessServing.v1";
6765
8202
  ownerKey: string;
6766
8203
  review: {
8204
+ teamId: string;
8205
+ modelProjectId: string;
8206
+ versionHash: string;
8207
+ artifact: {
8208
+ id: string;
8209
+ contentHash: string;
8210
+ };
8211
+ baseProfileId: string;
8212
+ workerImageDigest: string;
8213
+ providerConfigurationHash: string;
8214
+ price: {
8215
+ schemaVersion: "openpond.computeAppliedPrice.v1";
8216
+ version: string;
8217
+ profileHash: string;
8218
+ currency: "USD";
8219
+ unit: "resource_hour";
8220
+ hourlyUsd: string;
8221
+ service: "model_serving";
8222
+ };
8223
+ workerIdleTimeoutSeconds: 5;
8224
+ maximumRequestMillis: 540000;
8225
+ expiresAt: string;
8226
+ contentHash: string;
6767
8227
  schemaVersion: "openpond.serverlessServingReview.v1";
8228
+ rules: {
8229
+ quantity: "allocated_engine_milliseconds";
8230
+ allocation: "equal_billing_principal_then_request";
8231
+ startupBillable: false;
8232
+ idleBillable: false;
8233
+ queueBillable: false;
8234
+ failure: "observed_engine_work";
8235
+ cancellation: "until_engine_release";
8236
+ tokenRetailUsd: "0.000000";
8237
+ minimumBillableMillis: 0;
8238
+ };
8239
+ } | {
6768
8240
  teamId: string;
6769
8241
  modelProjectId: string;
6770
8242
  versionHash: string;
@@ -6784,21 +8256,66 @@ export declare function createSavedModelServingClient(request: (path: string, in
6784
8256
  hourlyUsd: string;
6785
8257
  service: "model_serving";
6786
8258
  };
8259
+ workerIdleTimeoutSeconds: 5;
8260
+ maximumRequestMillis: 540000;
8261
+ expiresAt: string;
8262
+ contentHash: string;
8263
+ schemaVersion: "openpond.serverlessServingReview.v2";
6787
8264
  rules: {
6788
- quantity: "allocated_engine_milliseconds";
8265
+ quantity: "allocated_worker_milliseconds";
6789
8266
  allocation: "equal_billing_principal_then_request";
6790
- startupBillable: false;
6791
- idleBillable: false;
8267
+ startupBillable: true;
8268
+ idleBillable: true;
8269
+ cleanupBillable: true;
6792
8270
  queueBillable: false;
6793
- failure: "observed_engine_work";
6794
- cancellation: "until_engine_release";
8271
+ failure: "observed_worker_runtime";
8272
+ cancellation: "until_worker_stop";
6795
8273
  tokenRetailUsd: "0.000000";
6796
8274
  minimumBillableMillis: 0;
8275
+ supplierRounding: "ceil_worker_lifetime_second_once";
8276
+ };
8277
+ } | {
8278
+ teamId: string;
8279
+ modelProjectId: string;
8280
+ versionHash: string;
8281
+ artifact: {
8282
+ id: string;
8283
+ contentHash: string;
8284
+ };
8285
+ baseProfileId: string;
8286
+ workerImageDigest: string;
8287
+ providerConfigurationHash: string;
8288
+ price: {
8289
+ schemaVersion: "openpond.computeAppliedPrice.v1";
8290
+ version: string;
8291
+ profileHash: string;
8292
+ currency: "USD";
8293
+ unit: "resource_hour";
8294
+ hourlyUsd: string;
8295
+ service: "model_serving";
6797
8296
  };
6798
- workerIdleTimeoutSeconds: 5;
6799
8297
  maximumRequestMillis: 540000;
6800
8298
  expiresAt: string;
6801
8299
  contentHash: string;
8300
+ rules: {
8301
+ quantity: "allocated_worker_milliseconds";
8302
+ allocation: "equal_billing_principal_then_request";
8303
+ startupBillable: true;
8304
+ idleBillable: true;
8305
+ cleanupBillable: true;
8306
+ queueBillable: false;
8307
+ failure: "observed_worker_runtime";
8308
+ cancellation: "until_worker_stop";
8309
+ tokenRetailUsd: "0.000000";
8310
+ minimumBillableMillis: 0;
8311
+ supplierRounding: "ceil_worker_lifetime_second_once";
8312
+ };
8313
+ schemaVersion: "openpond.serverlessServingReview.v3";
8314
+ workerIdleTimeoutSeconds: 5 | 60;
8315
+ hardware?: {
8316
+ selection: "automatic";
8317
+ gpuTypeIds: string[];
8318
+ } | undefined;
6802
8319
  };
6803
8320
  customerCapUsd: string | null;
6804
8321
  state: "active" | "closed" | "stopping";
@@ -6806,6 +8323,20 @@ export declare function createSavedModelServingClient(request: (path: string, in
6806
8323
  chargedUsd: string;
6807
8324
  reservedUsd: string;
6808
8325
  supplierCostStatus: "pending" | "reconciled";
8326
+ usage?: {
8327
+ mode: "periodic_actual_usage";
8328
+ phase: "closed" | "running" | "starting" | "stopping" | "waiting_capacity" | "waiting_funding" | "waiting_platform";
8329
+ ratedUsd: string;
8330
+ chargedUsd: string;
8331
+ prepaidDebitedUsd: string;
8332
+ includedUsageUsd: string;
8333
+ pendingEvidence: boolean;
8334
+ lastEvidenceAt: string | null;
8335
+ lastDebitAt: string | null;
8336
+ nextDebitAt: string | null;
8337
+ retryAt?: string | null | undefined;
8338
+ stopReason: string | null;
8339
+ } | undefined;
6809
8340
  } | undefined;
6810
8341
  usage?: {
6811
8342
  schemaVersion: "openpond.managedServingUsage.v1";
@@ -6911,7 +8442,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
6911
8442
  teamId: string;
6912
8443
  modelProjectId: string;
6913
8444
  versionHash: string;
6914
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
8445
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
6915
8446
  price: {
6916
8447
  schemaVersion: "openpond.computeAppliedPrice.v1";
6917
8448
  version: string;
@@ -7242,7 +8773,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
7242
8773
  teamId: string;
7243
8774
  modelProjectId: string;
7244
8775
  versionHash: string;
7245
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
8776
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
7246
8777
  price: {
7247
8778
  schemaVersion: "openpond.computeAppliedPrice.v1";
7248
8779
  version: string;
@@ -8034,7 +9565,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8034
9565
  teamId: string;
8035
9566
  modelProjectId: string;
8036
9567
  versionHash: string;
8037
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
9568
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
8038
9569
  price: {
8039
9570
  schemaVersion: "openpond.computeAppliedPrice.v1";
8040
9571
  version: string;
@@ -8411,7 +9942,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8411
9942
  requestHash: string;
8412
9943
  selection: {
8413
9944
  schemaVersion: "openpond.resolvedWeightModelSelection.v1";
8414
- method: "alphaedit" | "selective_neuron_training";
9945
+ method: "alphaedit" | "selective_neuron_training" | "weight_space_programming";
8415
9946
  savedModel: {
8416
9947
  modelProjectId: string;
8417
9948
  versionHash: string;
@@ -8447,7 +9978,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8447
9978
  teamId: string;
8448
9979
  modelProjectId: string;
8449
9980
  versionHash: string;
8450
- method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training";
9981
+ method: "alphaedit" | "decision" | "engram" | "selective_neuron_training" | "steering" | "training" | "weight_space_programming";
8451
9982
  price: {
8452
9983
  schemaVersion: "openpond.computeAppliedPrice.v1";
8453
9984
  version: string;
@@ -8505,7 +10036,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8505
10036
  reservationId: string | null;
8506
10037
  } | null;
8507
10038
  } | undefined;
8508
- schemaVersion: "openpond.neuronTrainingModelServing.v1";
10039
+ schemaVersion: "openpond.weightSpaceModelServing.v1";
8509
10040
  teamId: string;
8510
10041
  modelProjectId: string;
8511
10042
  observedAt: string;
@@ -8530,9 +10061,9 @@ export declare function createSavedModelServingClient(request: (path: string, in
8530
10061
  resultHash: string;
8531
10062
  };
8532
10063
  createdAt: string;
8533
- schemaVersion: "openpond.neuronTrainingModelVersion.v1";
10064
+ schemaVersion: "openpond.weightSpaceModelVersion.v1";
8534
10065
  request: {
8535
- schemaVersion: "openpond.selectiveNeuronTrainingRequest.v1";
10066
+ schemaVersion: "openpond.weightSpaceRequest.v1";
8536
10067
  model: {
8537
10068
  schemaVersion: "openpond.neuronSteeringModel.v1";
8538
10069
  modelId: string;
@@ -8548,194 +10079,104 @@ export declare function createSavedModelServingClient(request: (path: string, in
8548
10079
  hiddenSize: number;
8549
10080
  intermediateSizes: number[];
8550
10081
  };
8551
- data: {
8552
- target: {
8553
- batch: {
8554
- id: string;
8555
- contentHash: string;
8556
- revision: number;
8557
- };
8558
- examplesSha256: string;
8559
- encodingHash: string;
8560
- };
8561
- background: {
8562
- batch: {
8563
- id: string;
8564
- contentHash: string;
8565
- revision: number;
8566
- };
8567
- examplesSha256: string;
8568
- encodingHash: string;
8569
- domain: string;
8570
- }[];
8571
- preservation: {
8572
- batch: {
8573
- id: string;
8574
- contentHash: string;
8575
- revision: number;
8576
- };
8577
- examplesSha256: string;
8578
- encodingHash: string;
8579
- } | null;
8580
- };
8581
- selection: {
8582
- count: number;
8583
- span: "prompt" | "reply_prediction" | "reply_start";
8584
- backgroundStatistic: "max_domains" | "mean_domains";
8585
- maximumBackgroundTargetRatio: number;
8586
- gradientExamples: number;
8587
- explicitCoordinates: {
8588
- layer: number;
8589
- neuron: number;
8590
- }[] | null;
8591
- };
8592
- training: {
8593
- learningRate: number;
8594
- maxSteps: number;
8595
- gradientAccumulationSteps: number;
8596
- maxSequenceLength: number;
8597
- preservationWeight: number;
8598
- preservationExamplesPerStep: number;
8599
- seed: number;
8600
- maxDurationSeconds: number;
8601
- maxCheckpointBytes: number;
8602
- maximumForwardTokenWork: number;
10082
+ teacher: {
10083
+ controller: "local_agent";
10084
+ providerId: string;
10085
+ modelId: string;
10086
+ sessionId: string;
8603
10087
  };
8604
- parentArtifact: {
10088
+ objective: string;
10089
+ panels: {
10090
+ id: string;
10091
+ source: {
10092
+ id: string;
10093
+ contentHash: string;
10094
+ revision: number;
10095
+ } | null;
10096
+ role: "development" | "preservation";
10097
+ prompts: {
10098
+ id: string;
10099
+ text: string;
10100
+ system?: string | undefined;
10101
+ }[];
10102
+ }[];
10103
+ frozenEvaluation: {
8605
10104
  id: string;
8606
10105
  contentHash: string;
8607
- selectionHash: string;
8608
- payloadSha256: string;
8609
- mode: "frozen_parent_fresh_residual_adam_v1";
10106
+ revision: number;
8610
10107
  } | null;
10108
+ generation: {
10109
+ maxOutputTokens: number;
10110
+ seed: number;
10111
+ sampling: "greedy_v1";
10112
+ };
10113
+ limits: {
10114
+ maximumDurationSeconds: number;
10115
+ maximumIdleSeconds: number;
10116
+ maximumCommands: number;
10117
+ maximumCandidates: number;
10118
+ maximumPatchColumns: number;
10119
+ maximumTensorElements: number;
10120
+ maximumReturnedValues: number;
10121
+ maximumArithmeticWork: number;
10122
+ maximumForwardTokenWork: number;
10123
+ maximumCheckpointBytes: number;
10124
+ };
8611
10125
  };
8612
10126
  artifact: {
8613
10127
  id: string;
8614
10128
  contentHash: string;
8615
10129
  manifest: {
8616
- schemaVersion: "openpond.neuronTrainingArtifact.v1";
8617
- method: "selective_neuron_training";
8618
- algorithm: {
8619
- implementation: "openpond_qwen3_selective_columns_v1";
8620
- upstream: "changjonathanc/neuron-tuning";
8621
- revision: "8a55f3159f735eb0823d7a894f67f632bf568bb3";
8622
- license: "Apache-2.0";
8623
- hook: "mlp.down_proj";
8624
- operation: "output_plus_selected_input_times_delta_v1";
8625
- parameterization: "column_gain_rms_direction_v1";
8626
- activityQuantile: 0.9;
8627
- backgroundFloor: 0.000001;
8628
- gradientSubsetSeed: 0;
8629
- optimizer: "Adam";
8630
- betas: [0.9, 0.999];
8631
- epsilon: 1e-8;
8632
- weightDecay: 0;
8633
- gradientClipNorm: 1;
8634
- batchSize: 1;
8635
- parameterDtype: "float32";
8636
- resume: "unsupported";
8637
- };
8638
- pins: {
8639
- baseModel: {
8640
- schemaVersion: "openpond.neuronSteeringModel.v1";
8641
- modelId: string;
8642
- revision: string;
8643
- configHash: string;
8644
- weightsHash: string;
8645
- tokenizerHash: string;
8646
- weightIdentity: "torch_state_dict_sha256_v1";
8647
- architecture: "dense_decoder";
8648
- dtype: "bfloat16" | "float16" | "float32";
8649
- quantization: "none";
8650
- adapter: null;
8651
- hiddenSize: number;
8652
- intermediateSizes: number[];
8653
- };
8654
- inputHash: string;
8655
- data: {
8656
- target: {
8657
- batch: {
8658
- id: string;
8659
- contentHash: string;
8660
- revision: number;
8661
- };
8662
- examplesSha256: string;
8663
- encodingHash: string;
8664
- };
8665
- background: {
8666
- batch: {
8667
- id: string;
8668
- contentHash: string;
8669
- revision: number;
8670
- };
8671
- examplesSha256: string;
8672
- encodingHash: string;
8673
- domain: string;
8674
- }[];
8675
- preservation: {
8676
- batch: {
8677
- id: string;
8678
- contentHash: string;
8679
- revision: number;
8680
- };
8681
- examplesSha256: string;
8682
- encodingHash: string;
8683
- } | null;
8684
- };
8685
- dataHash: string;
8686
- selectionConfigHash: string;
8687
- trainingConfigHash: string;
8688
- runtimeHash: string;
8689
- parentArtifactHash: string | null;
10130
+ schemaVersion: "openpond.weightSpaceArtifact.v1";
10131
+ method: "weight_space_programming";
10132
+ representation: "exact_bf16_mlp_column_replacements_v1";
10133
+ model: {
10134
+ schemaVersion: "openpond.neuronSteeringModel.v1";
10135
+ modelId: string;
10136
+ revision: string;
10137
+ configHash: string;
10138
+ weightsHash: string;
10139
+ tokenizerHash: string;
10140
+ weightIdentity: "torch_state_dict_sha256_v1";
10141
+ architecture: "dense_decoder";
10142
+ dtype: "bfloat16" | "float16" | "float32";
10143
+ quantization: "none";
10144
+ adapter: null;
10145
+ hiddenSize: number;
10146
+ intermediateSizes: number[];
8690
10147
  };
8691
- selection: {
8692
- schemaVersion: "openpond.neuronTrainingSelectionResult.v1";
8693
- modelHash: string;
8694
- dataHash: string;
8695
- selectionConfigHash: string;
8696
- preparedRowsHash: string;
8697
- source: "automatic" | "explicit";
8698
- targetExampleIds: string[];
8699
- eligibleCount: number;
8700
- entries: {
8701
- layer: number;
8702
- neuron: number;
8703
- targetMeanAbsolute: number;
8704
- backgroundMeanAbsolute: number;
8705
- backgroundTargetRatio: number;
8706
- gradientNorm: number;
8707
- score: number;
8708
- targetActivityThreshold: number;
8709
- backgroundByDomain: {
8710
- domainIndex: number;
8711
- meanAbsolute: number;
8712
- }[];
8713
- }[];
8714
- contentHash: string;
10148
+ requestHash: string;
10149
+ runtimeHash: string;
10150
+ candidateHash: string;
10151
+ teacher: {
10152
+ controller: "local_agent";
10153
+ providerId: string;
10154
+ modelId: string;
10155
+ sessionId: string;
8715
10156
  };
8716
- continuation?: {
8717
- mode: "frozen_parent_fresh_residual_adam_v1";
8718
- selectionProvenance: "inherited_parent_observations";
8719
- parameterAnchor: "original_dense_base_columns_v1";
8720
- parentArtifactHash: string;
8721
- parentSelectionHash: string;
8722
- parentPayloadSha256: string;
8723
- parentPatchStateSha256: string;
8724
- initialPatchStateSha256: string;
8725
- finalPatchStateSha256: string;
8726
- installedBeforeOptimizer: true;
8727
- optimizerState: "fresh";
8728
- } | undefined;
10157
+ historyHash: string;
10158
+ columns: {
10159
+ layer: number;
10160
+ columns: number[];
10161
+ }[];
10162
+ columnHashes: string[];
8729
10163
  payload: {
8730
10164
  path: "patch.safetensors";
8731
10165
  sha256: string;
8732
10166
  sizeBytes: number;
8733
10167
  tensors: {
8734
10168
  name: string;
8735
- dtype: "F32" | "I64";
10169
+ dtype: "BF16" | "I64";
8736
10170
  shape: number[];
8737
10171
  }[];
8738
10172
  };
10173
+ reload: {
10174
+ effectiveColumnsHash: string;
10175
+ reloadedColumnsHash: string;
10176
+ untouchedWeightsHashBefore: string;
10177
+ untouchedWeightsHashAfter: string;
10178
+ equivalent: true;
10179
+ };
8739
10180
  contentHash: string;
8740
10181
  };
8741
10182
  files: {
@@ -8777,7 +10218,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8777
10218
  chargedUsd: string;
8778
10219
  reservationId: string | null;
8779
10220
  } | undefined;
8780
- schemaVersion: "openpond.neuronTrainingModelServingControl.v1";
10221
+ schemaVersion: "openpond.weightSpaceModelServingControl.v1";
8781
10222
  teamId: string;
8782
10223
  modelProjectId: string;
8783
10224
  versionHash: string;
@@ -8824,7 +10265,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8824
10265
  chargedUsd: string;
8825
10266
  reservationId: string | null;
8826
10267
  } | undefined;
8827
- schemaVersion: "openpond.neuronTrainingModelServingControl.v1";
10268
+ schemaVersion: "openpond.weightSpaceModelServingControl.v1";
8828
10269
  teamId: string;
8829
10270
  modelProjectId: string;
8830
10271
  versionHash: string;
@@ -8875,7 +10316,7 @@ export declare function createSavedModelServingClient(request: (path: string, in
8875
10316
  requestHash: string;
8876
10317
  selection: {
8877
10318
  schemaVersion: "openpond.resolvedWeightModelSelection.v1";
8878
- method: "alphaedit" | "selective_neuron_training";
10319
+ method: "alphaedit" | "selective_neuron_training" | "weight_space_programming";
8879
10320
  savedModel: {
8880
10321
  modelProjectId: string;
8881
10322
  versionHash: string;