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
@@ -0,0 +1,4600 @@
1
+ import { z } from "zod";
2
+ import { ManagedModificationStartSchema, ManagedModificationCancelSchema } from "./managed-modification-executions.js";
3
+ import { ModelModificationCapabilitiesQuerySchema } from "./model-modification-capabilities.js";
4
+ import { type WeightSpaceCommand } from "./weight-space-programming.js";
5
+ /** New qualified cold-bootstrap terms travel inside the hashed runtime. Old
6
+ * runtimes omit this profile and retain their original 300-second clock. */
7
+ export declare const WeightSpaceQualifiedBootstrapClockSchema: z.ZodObject<{
8
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceQualifiedBootstrapClock.v1">;
9
+ method: z.ZodLiteral<"weight_space_programming">;
10
+ validationLevel: z.ZodLiteral<"gpu_qualified">;
11
+ bootstrapSeconds: z.ZodLiteral<900>;
12
+ maximumWorkSeconds: z.ZodNumber;
13
+ workClock: z.ZodLiteral<"native_command_issued">;
14
+ cleanupSeconds: z.ZodLiteral<120>;
15
+ modelHash: z.ZodString;
16
+ runtimeTemplateHash: z.ZodString;
17
+ qualification: z.ZodObject<{
18
+ id: z.ZodString;
19
+ contentHash: z.ZodString;
20
+ }, z.core.$strict>;
21
+ source: z.ZodObject<{
22
+ imageDigest: z.ZodString;
23
+ releaseHash: z.ZodString;
24
+ canonicalReleaseSha256: z.ZodString;
25
+ sourceTreeSha256: z.ZodString;
26
+ softwareInventorySha256: z.ZodString;
27
+ buildReceiptSha256: z.ZodString;
28
+ pythonSdkSha256: z.ZodString;
29
+ }, z.core.$strict>;
30
+ contentHash: z.ZodString;
31
+ }, z.core.$strict>;
32
+ export declare const WeightSpaceCapabilityContentSchema: z.ZodObject<{
33
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCapability.v1">;
34
+ teamId: z.ZodString;
35
+ actorId: z.ZodString;
36
+ query: z.ZodObject<{
37
+ teamId: z.ZodString;
38
+ modelId: z.ZodString;
39
+ source: z.ZodEnum<{
40
+ builtin: "builtin";
41
+ local: "local";
42
+ managed: "managed";
43
+ }>;
44
+ revision: z.ZodOptional<z.ZodString>;
45
+ tokenizerRevision: z.ZodOptional<z.ZodString>;
46
+ chatTemplateHash: z.ZodOptional<z.ZodString>;
47
+ modelAssetId: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
49
+ requestHash: z.ZodString;
50
+ checkedAt: z.ZodISODateTime;
51
+ expiresAt: z.ZodISODateTime;
52
+ validationLevel: z.ZodNullable<z.ZodEnum<{
53
+ gpu_qualified: "gpu_qualified";
54
+ source_validated: "source_validated";
55
+ }>>;
56
+ execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ state: z.ZodLiteral<"unavailable">;
58
+ code: z.ZodEnum<{
59
+ model_not_supported: "model_not_supported";
60
+ runtime_not_qualified: "runtime_not_qualified";
61
+ }>;
62
+ reason: z.ZodString;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ state: z.ZodLiteral<"ready">;
65
+ model: z.ZodObject<{
66
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
67
+ modelId: z.ZodString;
68
+ revision: z.ZodString;
69
+ configHash: z.ZodString;
70
+ weightsHash: z.ZodString;
71
+ tokenizerHash: z.ZodString;
72
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
73
+ architecture: z.ZodLiteral<"dense_decoder">;
74
+ dtype: z.ZodEnum<{
75
+ bfloat16: "bfloat16";
76
+ float16: "float16";
77
+ float32: "float32";
78
+ }>;
79
+ quantization: z.ZodLiteral<"none">;
80
+ adapter: z.ZodNull;
81
+ hiddenSize: z.ZodNumber;
82
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
83
+ }, z.core.$strict>;
84
+ runtime: z.ZodObject<{
85
+ id: z.ZodString;
86
+ releaseHash: z.ZodString;
87
+ imageDigest: z.ZodString;
88
+ requestSchema: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
89
+ bootstrapClock: z.ZodOptional<z.ZodObject<{
90
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceQualifiedBootstrapClock.v1">;
91
+ method: z.ZodLiteral<"weight_space_programming">;
92
+ validationLevel: z.ZodLiteral<"gpu_qualified">;
93
+ bootstrapSeconds: z.ZodLiteral<900>;
94
+ maximumWorkSeconds: z.ZodNumber;
95
+ workClock: z.ZodLiteral<"native_command_issued">;
96
+ cleanupSeconds: z.ZodLiteral<120>;
97
+ modelHash: z.ZodString;
98
+ runtimeTemplateHash: z.ZodString;
99
+ qualification: z.ZodObject<{
100
+ id: z.ZodString;
101
+ contentHash: z.ZodString;
102
+ }, z.core.$strict>;
103
+ source: z.ZodObject<{
104
+ imageDigest: z.ZodString;
105
+ releaseHash: z.ZodString;
106
+ canonicalReleaseSha256: z.ZodString;
107
+ sourceTreeSha256: z.ZodString;
108
+ softwareInventorySha256: z.ZodString;
109
+ buildReceiptSha256: z.ZodString;
110
+ pythonSdkSha256: z.ZodString;
111
+ }, z.core.$strict>;
112
+ contentHash: z.ZodString;
113
+ }, z.core.$strict>>;
114
+ evidence: z.ZodObject<{
115
+ id: z.ZodString;
116
+ contentHash: z.ZodString;
117
+ }, z.core.$strict>;
118
+ }, z.core.$strict>;
119
+ limits: z.ZodObject<{
120
+ maximumDurationSeconds: z.ZodNumber;
121
+ maximumIdleSeconds: z.ZodNumber;
122
+ maximumCommands: z.ZodNumber;
123
+ maximumCandidates: z.ZodNumber;
124
+ maximumPatchColumns: z.ZodNumber;
125
+ maximumTensorElements: z.ZodNumber;
126
+ maximumReturnedValues: z.ZodNumber;
127
+ maximumArithmeticWork: z.ZodNumber;
128
+ maximumForwardTokenWork: z.ZodNumber;
129
+ maximumCheckpointBytes: z.ZodNumber;
130
+ }, z.core.$strict>;
131
+ }, z.core.$strict>], "state">;
132
+ }, z.core.$strict>;
133
+ export declare const WeightSpaceCapabilitySchema: z.ZodObject<{
134
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCapability.v1">;
135
+ teamId: z.ZodString;
136
+ actorId: z.ZodString;
137
+ query: z.ZodObject<{
138
+ teamId: z.ZodString;
139
+ modelId: z.ZodString;
140
+ source: z.ZodEnum<{
141
+ builtin: "builtin";
142
+ local: "local";
143
+ managed: "managed";
144
+ }>;
145
+ revision: z.ZodOptional<z.ZodString>;
146
+ tokenizerRevision: z.ZodOptional<z.ZodString>;
147
+ chatTemplateHash: z.ZodOptional<z.ZodString>;
148
+ modelAssetId: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strict>;
150
+ requestHash: z.ZodString;
151
+ checkedAt: z.ZodISODateTime;
152
+ expiresAt: z.ZodISODateTime;
153
+ validationLevel: z.ZodNullable<z.ZodEnum<{
154
+ gpu_qualified: "gpu_qualified";
155
+ source_validated: "source_validated";
156
+ }>>;
157
+ execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
158
+ state: z.ZodLiteral<"unavailable">;
159
+ code: z.ZodEnum<{
160
+ model_not_supported: "model_not_supported";
161
+ runtime_not_qualified: "runtime_not_qualified";
162
+ }>;
163
+ reason: z.ZodString;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ state: z.ZodLiteral<"ready">;
166
+ model: z.ZodObject<{
167
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
168
+ modelId: z.ZodString;
169
+ revision: z.ZodString;
170
+ configHash: z.ZodString;
171
+ weightsHash: z.ZodString;
172
+ tokenizerHash: z.ZodString;
173
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
174
+ architecture: z.ZodLiteral<"dense_decoder">;
175
+ dtype: z.ZodEnum<{
176
+ bfloat16: "bfloat16";
177
+ float16: "float16";
178
+ float32: "float32";
179
+ }>;
180
+ quantization: z.ZodLiteral<"none">;
181
+ adapter: z.ZodNull;
182
+ hiddenSize: z.ZodNumber;
183
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
184
+ }, z.core.$strict>;
185
+ runtime: z.ZodObject<{
186
+ id: z.ZodString;
187
+ releaseHash: z.ZodString;
188
+ imageDigest: z.ZodString;
189
+ requestSchema: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
190
+ bootstrapClock: z.ZodOptional<z.ZodObject<{
191
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceQualifiedBootstrapClock.v1">;
192
+ method: z.ZodLiteral<"weight_space_programming">;
193
+ validationLevel: z.ZodLiteral<"gpu_qualified">;
194
+ bootstrapSeconds: z.ZodLiteral<900>;
195
+ maximumWorkSeconds: z.ZodNumber;
196
+ workClock: z.ZodLiteral<"native_command_issued">;
197
+ cleanupSeconds: z.ZodLiteral<120>;
198
+ modelHash: z.ZodString;
199
+ runtimeTemplateHash: z.ZodString;
200
+ qualification: z.ZodObject<{
201
+ id: z.ZodString;
202
+ contentHash: z.ZodString;
203
+ }, z.core.$strict>;
204
+ source: z.ZodObject<{
205
+ imageDigest: z.ZodString;
206
+ releaseHash: z.ZodString;
207
+ canonicalReleaseSha256: z.ZodString;
208
+ sourceTreeSha256: z.ZodString;
209
+ softwareInventorySha256: z.ZodString;
210
+ buildReceiptSha256: z.ZodString;
211
+ pythonSdkSha256: z.ZodString;
212
+ }, z.core.$strict>;
213
+ contentHash: z.ZodString;
214
+ }, z.core.$strict>>;
215
+ evidence: z.ZodObject<{
216
+ id: z.ZodString;
217
+ contentHash: z.ZodString;
218
+ }, z.core.$strict>;
219
+ }, z.core.$strict>;
220
+ limits: z.ZodObject<{
221
+ maximumDurationSeconds: z.ZodNumber;
222
+ maximumIdleSeconds: z.ZodNumber;
223
+ maximumCommands: z.ZodNumber;
224
+ maximumCandidates: z.ZodNumber;
225
+ maximumPatchColumns: z.ZodNumber;
226
+ maximumTensorElements: z.ZodNumber;
227
+ maximumReturnedValues: z.ZodNumber;
228
+ maximumArithmeticWork: z.ZodNumber;
229
+ maximumForwardTokenWork: z.ZodNumber;
230
+ maximumCheckpointBytes: z.ZodNumber;
231
+ }, z.core.$strict>;
232
+ }, z.core.$strict>], "state">;
233
+ contentHash: z.ZodString;
234
+ }, z.core.$strict>;
235
+ export type WeightSpaceCapability = z.infer<typeof WeightSpaceCapabilitySchema>;
236
+ export declare const WeightSpacePrepareSchema: z.ZodObject<{
237
+ teamId: z.ZodString;
238
+ operationId: z.ZodString;
239
+ projectId: z.ZodNullable<z.ZodString>;
240
+ name: z.ZodString;
241
+ method: z.ZodLiteral<"weight_space_programming">;
242
+ query: z.ZodObject<{
243
+ teamId: z.ZodString;
244
+ modelId: z.ZodString;
245
+ source: z.ZodEnum<{
246
+ builtin: "builtin";
247
+ local: "local";
248
+ managed: "managed";
249
+ }>;
250
+ revision: z.ZodOptional<z.ZodString>;
251
+ tokenizerRevision: z.ZodOptional<z.ZodString>;
252
+ chatTemplateHash: z.ZodOptional<z.ZodString>;
253
+ modelAssetId: z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strict>;
255
+ request: z.ZodObject<{
256
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
257
+ model: z.ZodObject<{
258
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
259
+ modelId: z.ZodString;
260
+ revision: z.ZodString;
261
+ configHash: z.ZodString;
262
+ weightsHash: z.ZodString;
263
+ tokenizerHash: z.ZodString;
264
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
265
+ architecture: z.ZodLiteral<"dense_decoder">;
266
+ dtype: z.ZodEnum<{
267
+ bfloat16: "bfloat16";
268
+ float16: "float16";
269
+ float32: "float32";
270
+ }>;
271
+ quantization: z.ZodLiteral<"none">;
272
+ adapter: z.ZodNull;
273
+ hiddenSize: z.ZodNumber;
274
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
275
+ }, z.core.$strict>;
276
+ teacher: z.ZodObject<{
277
+ controller: z.ZodLiteral<"local_agent">;
278
+ providerId: z.ZodString;
279
+ modelId: z.ZodString;
280
+ sessionId: z.ZodString;
281
+ }, z.core.$strict>;
282
+ objective: z.ZodString;
283
+ panels: z.ZodArray<z.ZodObject<{
284
+ id: z.ZodString;
285
+ source: z.ZodNullable<z.ZodObject<{
286
+ id: z.ZodString;
287
+ contentHash: z.ZodString;
288
+ revision: z.ZodNumber;
289
+ }, z.core.$strict>>;
290
+ role: z.ZodEnum<{
291
+ development: "development";
292
+ preservation: "preservation";
293
+ }>;
294
+ prompts: z.ZodArray<z.ZodObject<{
295
+ id: z.ZodString;
296
+ text: z.ZodString;
297
+ system: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strict>>;
299
+ }, z.core.$strict>>;
300
+ frozenEvaluation: z.ZodNullable<z.ZodObject<{
301
+ id: z.ZodString;
302
+ contentHash: z.ZodString;
303
+ revision: z.ZodNumber;
304
+ }, z.core.$strict>>;
305
+ generation: z.ZodObject<{
306
+ maxOutputTokens: z.ZodNumber;
307
+ seed: z.ZodNumber;
308
+ sampling: z.ZodLiteral<"greedy_v1">;
309
+ }, z.core.$strict>;
310
+ limits: z.ZodObject<{
311
+ maximumDurationSeconds: z.ZodNumber;
312
+ maximumIdleSeconds: z.ZodNumber;
313
+ maximumCommands: z.ZodNumber;
314
+ maximumCandidates: z.ZodNumber;
315
+ maximumPatchColumns: z.ZodNumber;
316
+ maximumTensorElements: z.ZodNumber;
317
+ maximumReturnedValues: z.ZodNumber;
318
+ maximumArithmeticWork: z.ZodNumber;
319
+ maximumForwardTokenWork: z.ZodNumber;
320
+ maximumCheckpointBytes: z.ZodNumber;
321
+ }, z.core.$strict>;
322
+ }, z.core.$strict>;
323
+ maximumSpendUsd: z.ZodString;
324
+ sourceForm: z.ZodOptional<z.ZodNever>;
325
+ }, z.core.$strict>;
326
+ export type WeightSpacePrepare = z.infer<typeof WeightSpacePrepareSchema>;
327
+ export declare const WeightSpaceSessionStateSchema: z.ZodObject<{
328
+ revision: z.ZodNumber;
329
+ candidateHash: z.ZodString;
330
+ historyHash: z.ZodString;
331
+ phase: z.ZodEnum<{
332
+ busy: "busy";
333
+ closed: "closed";
334
+ finalizing: "finalizing";
335
+ ready: "ready";
336
+ starting: "starting";
337
+ }>;
338
+ pendingOperationId: z.ZodNullable<z.ZodString>;
339
+ lastActivityAt: z.ZodISODateTime;
340
+ finalization: z.ZodNullable<z.ZodObject<{
341
+ operationId: z.ZodString;
342
+ resultHash: z.ZodString;
343
+ historyHashBefore: z.ZodString;
344
+ status: z.ZodEnum<{
345
+ rejected: "rejected";
346
+ succeeded: "succeeded";
347
+ }>;
348
+ }, z.core.$strict>>;
349
+ usage: z.ZodObject<{
350
+ commands: z.ZodNumber;
351
+ candidates: z.ZodNumber;
352
+ arithmeticWork: z.ZodNumber;
353
+ forwardTokenWork: z.ZodNumber;
354
+ }, z.core.$strict>;
355
+ }, z.core.$strict>;
356
+ export declare const WeightSpaceExecutionMetadataSchema: z.ZodObject<{
357
+ id: z.ZodString;
358
+ teamId: z.ZodString;
359
+ ownerUserId: z.ZodString;
360
+ projectId: z.ZodNullable<z.ZodString>;
361
+ name: z.ZodString;
362
+ phase: z.ZodEnum<{
363
+ cancelled: "cancelled";
364
+ completed: "completed";
365
+ dispatching: "dispatching";
366
+ failed: "failed";
367
+ prepared: "prepared";
368
+ queued: "queued";
369
+ stopping: "stopping";
370
+ }>;
371
+ revision: z.ZodNumber;
372
+ sourceContentHash: z.ZodString;
373
+ plan: z.ZodObject<{
374
+ contentHash: z.ZodString;
375
+ inputHash: z.ZodString;
376
+ runtimeHash: z.ZodString;
377
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
378
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
379
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
380
+ appliedPrice: z.ZodObject<{
381
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
382
+ version: z.ZodString;
383
+ profileHash: z.ZodString;
384
+ currency: z.ZodLiteral<"USD">;
385
+ unit: z.ZodLiteral<"resource_hour">;
386
+ hourlyUsd: z.ZodString;
387
+ service: z.ZodLiteral<"model_modification">;
388
+ }, z.core.$strict>;
389
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
390
+ startupBillable: z.ZodLiteral<true>;
391
+ postCompletionIdleBillable: z.ZodLiteral<false>;
392
+ minimumBillableSeconds: z.ZodLiteral<0>;
393
+ warmReuseSeconds: z.ZodLiteral<300>;
394
+ }, z.core.$strict>, z.ZodObject<{
395
+ appliedPrice: z.ZodObject<{
396
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
397
+ version: z.ZodString;
398
+ profileHash: z.ZodString;
399
+ currency: z.ZodLiteral<"USD">;
400
+ unit: z.ZodLiteral<"resource_hour">;
401
+ hourlyUsd: z.ZodString;
402
+ service: z.ZodLiteral<"model_modification">;
403
+ }, z.core.$strict>;
404
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
405
+ startupBillable: z.ZodLiteral<true>;
406
+ postCompletionIdleBillable: z.ZodLiteral<false>;
407
+ minimumBillableSeconds: z.ZodLiteral<0>;
408
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
409
+ warmReuseSeconds: z.ZodLiteral<0>;
410
+ }, z.core.$strict>], "schemaVersion">>;
411
+ createdAt: z.ZodISODateTime;
412
+ expiresAt: z.ZodISODateTime;
413
+ }, z.core.$strict>;
414
+ updatedAt: z.ZodISODateTime;
415
+ method: z.ZodLiteral<"weight_space_programming">;
416
+ session: z.ZodNullable<z.ZodObject<{
417
+ revision: z.ZodNumber;
418
+ candidateHash: z.ZodString;
419
+ historyHash: z.ZodString;
420
+ phase: z.ZodEnum<{
421
+ busy: "busy";
422
+ closed: "closed";
423
+ finalizing: "finalizing";
424
+ ready: "ready";
425
+ starting: "starting";
426
+ }>;
427
+ pendingOperationId: z.ZodNullable<z.ZodString>;
428
+ lastActivityAt: z.ZodISODateTime;
429
+ finalization: z.ZodNullable<z.ZodObject<{
430
+ operationId: z.ZodString;
431
+ resultHash: z.ZodString;
432
+ historyHashBefore: z.ZodString;
433
+ status: z.ZodEnum<{
434
+ rejected: "rejected";
435
+ succeeded: "succeeded";
436
+ }>;
437
+ }, z.core.$strict>>;
438
+ usage: z.ZodObject<{
439
+ commands: z.ZodNumber;
440
+ candidates: z.ZodNumber;
441
+ arithmeticWork: z.ZodNumber;
442
+ forwardTokenWork: z.ZodNumber;
443
+ }, z.core.$strict>;
444
+ }, z.core.$strict>>;
445
+ }, z.core.$strict>;
446
+ export declare const WeightSpaceExecutionContentSchema: z.ZodObject<{
447
+ id: z.ZodString;
448
+ teamId: z.ZodString;
449
+ ownerUserId: z.ZodString;
450
+ projectId: z.ZodNullable<z.ZodString>;
451
+ name: z.ZodString;
452
+ phase: z.ZodEnum<{
453
+ cancelled: "cancelled";
454
+ completed: "completed";
455
+ dispatching: "dispatching";
456
+ failed: "failed";
457
+ prepared: "prepared";
458
+ queued: "queued";
459
+ stopping: "stopping";
460
+ }>;
461
+ revision: z.ZodNumber;
462
+ sourceContentHash: z.ZodString;
463
+ plan: z.ZodObject<{
464
+ contentHash: z.ZodString;
465
+ inputHash: z.ZodString;
466
+ runtimeHash: z.ZodString;
467
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
468
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
469
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
470
+ appliedPrice: z.ZodObject<{
471
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
472
+ version: z.ZodString;
473
+ profileHash: z.ZodString;
474
+ currency: z.ZodLiteral<"USD">;
475
+ unit: z.ZodLiteral<"resource_hour">;
476
+ hourlyUsd: z.ZodString;
477
+ service: z.ZodLiteral<"model_modification">;
478
+ }, z.core.$strict>;
479
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
480
+ startupBillable: z.ZodLiteral<true>;
481
+ postCompletionIdleBillable: z.ZodLiteral<false>;
482
+ minimumBillableSeconds: z.ZodLiteral<0>;
483
+ warmReuseSeconds: z.ZodLiteral<300>;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ appliedPrice: z.ZodObject<{
486
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
487
+ version: z.ZodString;
488
+ profileHash: z.ZodString;
489
+ currency: z.ZodLiteral<"USD">;
490
+ unit: z.ZodLiteral<"resource_hour">;
491
+ hourlyUsd: z.ZodString;
492
+ service: z.ZodLiteral<"model_modification">;
493
+ }, z.core.$strict>;
494
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
495
+ startupBillable: z.ZodLiteral<true>;
496
+ postCompletionIdleBillable: z.ZodLiteral<false>;
497
+ minimumBillableSeconds: z.ZodLiteral<0>;
498
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
499
+ warmReuseSeconds: z.ZodLiteral<0>;
500
+ }, z.core.$strict>], "schemaVersion">>;
501
+ createdAt: z.ZodISODateTime;
502
+ expiresAt: z.ZodISODateTime;
503
+ }, z.core.$strict>;
504
+ updatedAt: z.ZodISODateTime;
505
+ method: z.ZodLiteral<"weight_space_programming">;
506
+ session: z.ZodNullable<z.ZodObject<{
507
+ revision: z.ZodNumber;
508
+ candidateHash: z.ZodString;
509
+ historyHash: z.ZodString;
510
+ phase: z.ZodEnum<{
511
+ busy: "busy";
512
+ closed: "closed";
513
+ finalizing: "finalizing";
514
+ ready: "ready";
515
+ starting: "starting";
516
+ }>;
517
+ pendingOperationId: z.ZodNullable<z.ZodString>;
518
+ lastActivityAt: z.ZodISODateTime;
519
+ finalization: z.ZodNullable<z.ZodObject<{
520
+ operationId: z.ZodString;
521
+ resultHash: z.ZodString;
522
+ historyHashBefore: z.ZodString;
523
+ status: z.ZodEnum<{
524
+ rejected: "rejected";
525
+ succeeded: "succeeded";
526
+ }>;
527
+ }, z.core.$strict>>;
528
+ usage: z.ZodObject<{
529
+ commands: z.ZodNumber;
530
+ candidates: z.ZodNumber;
531
+ arithmeticWork: z.ZodNumber;
532
+ forwardTokenWork: z.ZodNumber;
533
+ }, z.core.$strict>;
534
+ }, z.core.$strict>>;
535
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecution.v1">;
536
+ request: z.ZodObject<{
537
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
538
+ model: z.ZodObject<{
539
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
540
+ modelId: z.ZodString;
541
+ revision: z.ZodString;
542
+ configHash: z.ZodString;
543
+ weightsHash: z.ZodString;
544
+ tokenizerHash: z.ZodString;
545
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
546
+ architecture: z.ZodLiteral<"dense_decoder">;
547
+ dtype: z.ZodEnum<{
548
+ bfloat16: "bfloat16";
549
+ float16: "float16";
550
+ float32: "float32";
551
+ }>;
552
+ quantization: z.ZodLiteral<"none">;
553
+ adapter: z.ZodNull;
554
+ hiddenSize: z.ZodNumber;
555
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
556
+ }, z.core.$strict>;
557
+ teacher: z.ZodObject<{
558
+ controller: z.ZodLiteral<"local_agent">;
559
+ providerId: z.ZodString;
560
+ modelId: z.ZodString;
561
+ sessionId: z.ZodString;
562
+ }, z.core.$strict>;
563
+ objective: z.ZodString;
564
+ panels: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodString;
566
+ source: z.ZodNullable<z.ZodObject<{
567
+ id: z.ZodString;
568
+ contentHash: z.ZodString;
569
+ revision: z.ZodNumber;
570
+ }, z.core.$strict>>;
571
+ role: z.ZodEnum<{
572
+ development: "development";
573
+ preservation: "preservation";
574
+ }>;
575
+ prompts: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ text: z.ZodString;
578
+ system: z.ZodOptional<z.ZodString>;
579
+ }, z.core.$strict>>;
580
+ }, z.core.$strict>>;
581
+ frozenEvaluation: z.ZodNullable<z.ZodObject<{
582
+ id: z.ZodString;
583
+ contentHash: z.ZodString;
584
+ revision: z.ZodNumber;
585
+ }, z.core.$strict>>;
586
+ generation: z.ZodObject<{
587
+ maxOutputTokens: z.ZodNumber;
588
+ seed: z.ZodNumber;
589
+ sampling: z.ZodLiteral<"greedy_v1">;
590
+ }, z.core.$strict>;
591
+ limits: z.ZodObject<{
592
+ maximumDurationSeconds: z.ZodNumber;
593
+ maximumIdleSeconds: z.ZodNumber;
594
+ maximumCommands: z.ZodNumber;
595
+ maximumCandidates: z.ZodNumber;
596
+ maximumPatchColumns: z.ZodNumber;
597
+ maximumTensorElements: z.ZodNumber;
598
+ maximumReturnedValues: z.ZodNumber;
599
+ maximumArithmeticWork: z.ZodNumber;
600
+ maximumForwardTokenWork: z.ZodNumber;
601
+ maximumCheckpointBytes: z.ZodNumber;
602
+ }, z.core.$strict>;
603
+ }, z.core.$strict>;
604
+ result: z.ZodNullable<z.ZodObject<{
605
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceResult.v1">;
606
+ inputHash: z.ZodString;
607
+ runtimeHash: z.ZodString;
608
+ candidateHash: z.ZodString;
609
+ historyHash: z.ZodString;
610
+ artifact: z.ZodObject<{
611
+ id: z.ZodString;
612
+ contentHash: z.ZodString;
613
+ manifest: z.ZodObject<{
614
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceArtifact.v1">;
615
+ method: z.ZodLiteral<"weight_space_programming">;
616
+ representation: z.ZodLiteral<"exact_bf16_mlp_column_replacements_v1">;
617
+ model: z.ZodObject<{
618
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
619
+ modelId: z.ZodString;
620
+ revision: z.ZodString;
621
+ configHash: z.ZodString;
622
+ weightsHash: z.ZodString;
623
+ tokenizerHash: z.ZodString;
624
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
625
+ architecture: z.ZodLiteral<"dense_decoder">;
626
+ dtype: z.ZodEnum<{
627
+ bfloat16: "bfloat16";
628
+ float16: "float16";
629
+ float32: "float32";
630
+ }>;
631
+ quantization: z.ZodLiteral<"none">;
632
+ adapter: z.ZodNull;
633
+ hiddenSize: z.ZodNumber;
634
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
635
+ }, z.core.$strict>;
636
+ requestHash: z.ZodString;
637
+ runtimeHash: z.ZodString;
638
+ candidateHash: z.ZodString;
639
+ teacher: z.ZodObject<{
640
+ controller: z.ZodLiteral<"local_agent">;
641
+ providerId: z.ZodString;
642
+ modelId: z.ZodString;
643
+ sessionId: z.ZodString;
644
+ }, z.core.$strict>;
645
+ historyHash: z.ZodString;
646
+ columns: z.ZodArray<z.ZodObject<{
647
+ layer: z.ZodNumber;
648
+ columns: z.ZodArray<z.ZodNumber>;
649
+ }, z.core.$strict>>;
650
+ columnHashes: z.ZodArray<z.ZodString>;
651
+ payload: z.ZodObject<{
652
+ path: z.ZodLiteral<"patch.safetensors">;
653
+ sha256: z.ZodString;
654
+ sizeBytes: z.ZodNumber;
655
+ tensors: z.ZodArray<z.ZodObject<{
656
+ name: z.ZodString;
657
+ dtype: z.ZodEnum<{
658
+ BF16: "BF16";
659
+ I64: "I64";
660
+ }>;
661
+ shape: z.ZodArray<z.ZodNumber>;
662
+ }, z.core.$strict>>;
663
+ }, z.core.$strict>;
664
+ reload: z.ZodObject<{
665
+ effectiveColumnsHash: z.ZodString;
666
+ reloadedColumnsHash: z.ZodString;
667
+ untouchedWeightsHashBefore: z.ZodString;
668
+ untouchedWeightsHashAfter: z.ZodString;
669
+ equivalent: z.ZodLiteral<true>;
670
+ }, z.core.$strict>;
671
+ contentHash: z.ZodString;
672
+ }, z.core.$strict>;
673
+ files: z.ZodArray<z.ZodObject<{
674
+ path: z.ZodEnum<{
675
+ "manifest.json": "manifest.json";
676
+ "patch.safetensors": "patch.safetensors";
677
+ }>;
678
+ artifactId: z.ZodString;
679
+ sha256: z.ZodString;
680
+ sizeBytes: z.ZodNumber;
681
+ }, z.core.$strict>>;
682
+ }, z.core.$strict>;
683
+ commands: z.ZodNumber;
684
+ candidates: z.ZodNumber;
685
+ forwardTokenWork: z.ZodNumber;
686
+ durationMs: z.ZodNumber;
687
+ contentHash: z.ZodString;
688
+ }, z.core.$strict>>;
689
+ resultRecordedAt: z.ZodNullable<z.ZodISODateTime>;
690
+ }, z.core.$strict>;
691
+ export declare const WeightSpaceExecutionSchema: z.ZodObject<{
692
+ id: z.ZodString;
693
+ teamId: z.ZodString;
694
+ ownerUserId: z.ZodString;
695
+ projectId: z.ZodNullable<z.ZodString>;
696
+ name: z.ZodString;
697
+ phase: z.ZodEnum<{
698
+ cancelled: "cancelled";
699
+ completed: "completed";
700
+ dispatching: "dispatching";
701
+ failed: "failed";
702
+ prepared: "prepared";
703
+ queued: "queued";
704
+ stopping: "stopping";
705
+ }>;
706
+ revision: z.ZodNumber;
707
+ sourceContentHash: z.ZodString;
708
+ plan: z.ZodObject<{
709
+ contentHash: z.ZodString;
710
+ inputHash: z.ZodString;
711
+ runtimeHash: z.ZodString;
712
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
713
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
714
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
715
+ appliedPrice: z.ZodObject<{
716
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
717
+ version: z.ZodString;
718
+ profileHash: z.ZodString;
719
+ currency: z.ZodLiteral<"USD">;
720
+ unit: z.ZodLiteral<"resource_hour">;
721
+ hourlyUsd: z.ZodString;
722
+ service: z.ZodLiteral<"model_modification">;
723
+ }, z.core.$strict>;
724
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
725
+ startupBillable: z.ZodLiteral<true>;
726
+ postCompletionIdleBillable: z.ZodLiteral<false>;
727
+ minimumBillableSeconds: z.ZodLiteral<0>;
728
+ warmReuseSeconds: z.ZodLiteral<300>;
729
+ }, z.core.$strict>, z.ZodObject<{
730
+ appliedPrice: z.ZodObject<{
731
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
732
+ version: z.ZodString;
733
+ profileHash: z.ZodString;
734
+ currency: z.ZodLiteral<"USD">;
735
+ unit: z.ZodLiteral<"resource_hour">;
736
+ hourlyUsd: z.ZodString;
737
+ service: z.ZodLiteral<"model_modification">;
738
+ }, z.core.$strict>;
739
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
740
+ startupBillable: z.ZodLiteral<true>;
741
+ postCompletionIdleBillable: z.ZodLiteral<false>;
742
+ minimumBillableSeconds: z.ZodLiteral<0>;
743
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
744
+ warmReuseSeconds: z.ZodLiteral<0>;
745
+ }, z.core.$strict>], "schemaVersion">>;
746
+ createdAt: z.ZodISODateTime;
747
+ expiresAt: z.ZodISODateTime;
748
+ }, z.core.$strict>;
749
+ updatedAt: z.ZodISODateTime;
750
+ method: z.ZodLiteral<"weight_space_programming">;
751
+ session: z.ZodNullable<z.ZodObject<{
752
+ revision: z.ZodNumber;
753
+ candidateHash: z.ZodString;
754
+ historyHash: z.ZodString;
755
+ phase: z.ZodEnum<{
756
+ busy: "busy";
757
+ closed: "closed";
758
+ finalizing: "finalizing";
759
+ ready: "ready";
760
+ starting: "starting";
761
+ }>;
762
+ pendingOperationId: z.ZodNullable<z.ZodString>;
763
+ lastActivityAt: z.ZodISODateTime;
764
+ finalization: z.ZodNullable<z.ZodObject<{
765
+ operationId: z.ZodString;
766
+ resultHash: z.ZodString;
767
+ historyHashBefore: z.ZodString;
768
+ status: z.ZodEnum<{
769
+ rejected: "rejected";
770
+ succeeded: "succeeded";
771
+ }>;
772
+ }, z.core.$strict>>;
773
+ usage: z.ZodObject<{
774
+ commands: z.ZodNumber;
775
+ candidates: z.ZodNumber;
776
+ arithmeticWork: z.ZodNumber;
777
+ forwardTokenWork: z.ZodNumber;
778
+ }, z.core.$strict>;
779
+ }, z.core.$strict>>;
780
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecution.v1">;
781
+ request: z.ZodObject<{
782
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceRequest.v1">;
783
+ model: z.ZodObject<{
784
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
785
+ modelId: z.ZodString;
786
+ revision: z.ZodString;
787
+ configHash: z.ZodString;
788
+ weightsHash: z.ZodString;
789
+ tokenizerHash: z.ZodString;
790
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
791
+ architecture: z.ZodLiteral<"dense_decoder">;
792
+ dtype: z.ZodEnum<{
793
+ bfloat16: "bfloat16";
794
+ float16: "float16";
795
+ float32: "float32";
796
+ }>;
797
+ quantization: z.ZodLiteral<"none">;
798
+ adapter: z.ZodNull;
799
+ hiddenSize: z.ZodNumber;
800
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
801
+ }, z.core.$strict>;
802
+ teacher: z.ZodObject<{
803
+ controller: z.ZodLiteral<"local_agent">;
804
+ providerId: z.ZodString;
805
+ modelId: z.ZodString;
806
+ sessionId: z.ZodString;
807
+ }, z.core.$strict>;
808
+ objective: z.ZodString;
809
+ panels: z.ZodArray<z.ZodObject<{
810
+ id: z.ZodString;
811
+ source: z.ZodNullable<z.ZodObject<{
812
+ id: z.ZodString;
813
+ contentHash: z.ZodString;
814
+ revision: z.ZodNumber;
815
+ }, z.core.$strict>>;
816
+ role: z.ZodEnum<{
817
+ development: "development";
818
+ preservation: "preservation";
819
+ }>;
820
+ prompts: z.ZodArray<z.ZodObject<{
821
+ id: z.ZodString;
822
+ text: z.ZodString;
823
+ system: z.ZodOptional<z.ZodString>;
824
+ }, z.core.$strict>>;
825
+ }, z.core.$strict>>;
826
+ frozenEvaluation: z.ZodNullable<z.ZodObject<{
827
+ id: z.ZodString;
828
+ contentHash: z.ZodString;
829
+ revision: z.ZodNumber;
830
+ }, z.core.$strict>>;
831
+ generation: z.ZodObject<{
832
+ maxOutputTokens: z.ZodNumber;
833
+ seed: z.ZodNumber;
834
+ sampling: z.ZodLiteral<"greedy_v1">;
835
+ }, z.core.$strict>;
836
+ limits: z.ZodObject<{
837
+ maximumDurationSeconds: z.ZodNumber;
838
+ maximumIdleSeconds: z.ZodNumber;
839
+ maximumCommands: z.ZodNumber;
840
+ maximumCandidates: z.ZodNumber;
841
+ maximumPatchColumns: z.ZodNumber;
842
+ maximumTensorElements: z.ZodNumber;
843
+ maximumReturnedValues: z.ZodNumber;
844
+ maximumArithmeticWork: z.ZodNumber;
845
+ maximumForwardTokenWork: z.ZodNumber;
846
+ maximumCheckpointBytes: z.ZodNumber;
847
+ }, z.core.$strict>;
848
+ }, z.core.$strict>;
849
+ result: z.ZodNullable<z.ZodObject<{
850
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceResult.v1">;
851
+ inputHash: z.ZodString;
852
+ runtimeHash: z.ZodString;
853
+ candidateHash: z.ZodString;
854
+ historyHash: z.ZodString;
855
+ artifact: z.ZodObject<{
856
+ id: z.ZodString;
857
+ contentHash: z.ZodString;
858
+ manifest: z.ZodObject<{
859
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceArtifact.v1">;
860
+ method: z.ZodLiteral<"weight_space_programming">;
861
+ representation: z.ZodLiteral<"exact_bf16_mlp_column_replacements_v1">;
862
+ model: z.ZodObject<{
863
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
864
+ modelId: z.ZodString;
865
+ revision: z.ZodString;
866
+ configHash: z.ZodString;
867
+ weightsHash: z.ZodString;
868
+ tokenizerHash: z.ZodString;
869
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
870
+ architecture: z.ZodLiteral<"dense_decoder">;
871
+ dtype: z.ZodEnum<{
872
+ bfloat16: "bfloat16";
873
+ float16: "float16";
874
+ float32: "float32";
875
+ }>;
876
+ quantization: z.ZodLiteral<"none">;
877
+ adapter: z.ZodNull;
878
+ hiddenSize: z.ZodNumber;
879
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
880
+ }, z.core.$strict>;
881
+ requestHash: z.ZodString;
882
+ runtimeHash: z.ZodString;
883
+ candidateHash: z.ZodString;
884
+ teacher: z.ZodObject<{
885
+ controller: z.ZodLiteral<"local_agent">;
886
+ providerId: z.ZodString;
887
+ modelId: z.ZodString;
888
+ sessionId: z.ZodString;
889
+ }, z.core.$strict>;
890
+ historyHash: z.ZodString;
891
+ columns: z.ZodArray<z.ZodObject<{
892
+ layer: z.ZodNumber;
893
+ columns: z.ZodArray<z.ZodNumber>;
894
+ }, z.core.$strict>>;
895
+ columnHashes: z.ZodArray<z.ZodString>;
896
+ payload: z.ZodObject<{
897
+ path: z.ZodLiteral<"patch.safetensors">;
898
+ sha256: z.ZodString;
899
+ sizeBytes: z.ZodNumber;
900
+ tensors: z.ZodArray<z.ZodObject<{
901
+ name: z.ZodString;
902
+ dtype: z.ZodEnum<{
903
+ BF16: "BF16";
904
+ I64: "I64";
905
+ }>;
906
+ shape: z.ZodArray<z.ZodNumber>;
907
+ }, z.core.$strict>>;
908
+ }, z.core.$strict>;
909
+ reload: z.ZodObject<{
910
+ effectiveColumnsHash: z.ZodString;
911
+ reloadedColumnsHash: z.ZodString;
912
+ untouchedWeightsHashBefore: z.ZodString;
913
+ untouchedWeightsHashAfter: z.ZodString;
914
+ equivalent: z.ZodLiteral<true>;
915
+ }, z.core.$strict>;
916
+ contentHash: z.ZodString;
917
+ }, z.core.$strict>;
918
+ files: z.ZodArray<z.ZodObject<{
919
+ path: z.ZodEnum<{
920
+ "manifest.json": "manifest.json";
921
+ "patch.safetensors": "patch.safetensors";
922
+ }>;
923
+ artifactId: z.ZodString;
924
+ sha256: z.ZodString;
925
+ sizeBytes: z.ZodNumber;
926
+ }, z.core.$strict>>;
927
+ }, z.core.$strict>;
928
+ commands: z.ZodNumber;
929
+ candidates: z.ZodNumber;
930
+ forwardTokenWork: z.ZodNumber;
931
+ durationMs: z.ZodNumber;
932
+ contentHash: z.ZodString;
933
+ }, z.core.$strict>>;
934
+ resultRecordedAt: z.ZodNullable<z.ZodISODateTime>;
935
+ contentHash: z.ZodString;
936
+ }, z.core.$strict>;
937
+ export type WeightSpaceExecution = z.infer<typeof WeightSpaceExecutionSchema>;
938
+ export declare const WeightSpaceExecutionReceiptContentSchema: z.ZodObject<{
939
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecutionReceipt.v1">;
940
+ operationId: z.ZodString;
941
+ requestHash: z.ZodString;
942
+ execution: z.ZodObject<{
943
+ id: z.ZodString;
944
+ teamId: z.ZodString;
945
+ ownerUserId: z.ZodString;
946
+ projectId: z.ZodNullable<z.ZodString>;
947
+ name: z.ZodString;
948
+ phase: z.ZodEnum<{
949
+ cancelled: "cancelled";
950
+ completed: "completed";
951
+ dispatching: "dispatching";
952
+ failed: "failed";
953
+ prepared: "prepared";
954
+ queued: "queued";
955
+ stopping: "stopping";
956
+ }>;
957
+ revision: z.ZodNumber;
958
+ sourceContentHash: z.ZodString;
959
+ plan: z.ZodObject<{
960
+ contentHash: z.ZodString;
961
+ inputHash: z.ZodString;
962
+ runtimeHash: z.ZodString;
963
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
964
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
965
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
966
+ appliedPrice: z.ZodObject<{
967
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
968
+ version: z.ZodString;
969
+ profileHash: z.ZodString;
970
+ currency: z.ZodLiteral<"USD">;
971
+ unit: z.ZodLiteral<"resource_hour">;
972
+ hourlyUsd: z.ZodString;
973
+ service: z.ZodLiteral<"model_modification">;
974
+ }, z.core.$strict>;
975
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
976
+ startupBillable: z.ZodLiteral<true>;
977
+ postCompletionIdleBillable: z.ZodLiteral<false>;
978
+ minimumBillableSeconds: z.ZodLiteral<0>;
979
+ warmReuseSeconds: z.ZodLiteral<300>;
980
+ }, z.core.$strict>, z.ZodObject<{
981
+ appliedPrice: z.ZodObject<{
982
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
983
+ version: z.ZodString;
984
+ profileHash: z.ZodString;
985
+ currency: z.ZodLiteral<"USD">;
986
+ unit: z.ZodLiteral<"resource_hour">;
987
+ hourlyUsd: z.ZodString;
988
+ service: z.ZodLiteral<"model_modification">;
989
+ }, z.core.$strict>;
990
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
991
+ startupBillable: z.ZodLiteral<true>;
992
+ postCompletionIdleBillable: z.ZodLiteral<false>;
993
+ minimumBillableSeconds: z.ZodLiteral<0>;
994
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
995
+ warmReuseSeconds: z.ZodLiteral<0>;
996
+ }, z.core.$strict>], "schemaVersion">>;
997
+ createdAt: z.ZodISODateTime;
998
+ expiresAt: z.ZodISODateTime;
999
+ }, z.core.$strict>;
1000
+ updatedAt: z.ZodISODateTime;
1001
+ method: z.ZodLiteral<"weight_space_programming">;
1002
+ session: z.ZodNullable<z.ZodObject<{
1003
+ revision: z.ZodNumber;
1004
+ candidateHash: z.ZodString;
1005
+ historyHash: z.ZodString;
1006
+ phase: z.ZodEnum<{
1007
+ busy: "busy";
1008
+ closed: "closed";
1009
+ finalizing: "finalizing";
1010
+ ready: "ready";
1011
+ starting: "starting";
1012
+ }>;
1013
+ pendingOperationId: z.ZodNullable<z.ZodString>;
1014
+ lastActivityAt: z.ZodISODateTime;
1015
+ finalization: z.ZodNullable<z.ZodObject<{
1016
+ operationId: z.ZodString;
1017
+ resultHash: z.ZodString;
1018
+ historyHashBefore: z.ZodString;
1019
+ status: z.ZodEnum<{
1020
+ rejected: "rejected";
1021
+ succeeded: "succeeded";
1022
+ }>;
1023
+ }, z.core.$strict>>;
1024
+ usage: z.ZodObject<{
1025
+ commands: z.ZodNumber;
1026
+ candidates: z.ZodNumber;
1027
+ arithmeticWork: z.ZodNumber;
1028
+ forwardTokenWork: z.ZodNumber;
1029
+ }, z.core.$strict>;
1030
+ }, z.core.$strict>>;
1031
+ }, z.core.$strict>;
1032
+ }, z.core.$strict>;
1033
+ export declare const WeightSpaceExecutionReceiptSchema: z.ZodObject<{
1034
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecutionReceipt.v1">;
1035
+ operationId: z.ZodString;
1036
+ requestHash: z.ZodString;
1037
+ execution: z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ teamId: z.ZodString;
1040
+ ownerUserId: z.ZodString;
1041
+ projectId: z.ZodNullable<z.ZodString>;
1042
+ name: z.ZodString;
1043
+ phase: z.ZodEnum<{
1044
+ cancelled: "cancelled";
1045
+ completed: "completed";
1046
+ dispatching: "dispatching";
1047
+ failed: "failed";
1048
+ prepared: "prepared";
1049
+ queued: "queued";
1050
+ stopping: "stopping";
1051
+ }>;
1052
+ revision: z.ZodNumber;
1053
+ sourceContentHash: z.ZodString;
1054
+ plan: z.ZodObject<{
1055
+ contentHash: z.ZodString;
1056
+ inputHash: z.ZodString;
1057
+ runtimeHash: z.ZodString;
1058
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
1059
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1060
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
1061
+ appliedPrice: z.ZodObject<{
1062
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1063
+ version: z.ZodString;
1064
+ profileHash: z.ZodString;
1065
+ currency: z.ZodLiteral<"USD">;
1066
+ unit: z.ZodLiteral<"resource_hour">;
1067
+ hourlyUsd: z.ZodString;
1068
+ service: z.ZodLiteral<"model_modification">;
1069
+ }, z.core.$strict>;
1070
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1071
+ startupBillable: z.ZodLiteral<true>;
1072
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1073
+ minimumBillableSeconds: z.ZodLiteral<0>;
1074
+ warmReuseSeconds: z.ZodLiteral<300>;
1075
+ }, z.core.$strict>, z.ZodObject<{
1076
+ appliedPrice: z.ZodObject<{
1077
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1078
+ version: z.ZodString;
1079
+ profileHash: z.ZodString;
1080
+ currency: z.ZodLiteral<"USD">;
1081
+ unit: z.ZodLiteral<"resource_hour">;
1082
+ hourlyUsd: z.ZodString;
1083
+ service: z.ZodLiteral<"model_modification">;
1084
+ }, z.core.$strict>;
1085
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1086
+ startupBillable: z.ZodLiteral<true>;
1087
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1088
+ minimumBillableSeconds: z.ZodLiteral<0>;
1089
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
1090
+ warmReuseSeconds: z.ZodLiteral<0>;
1091
+ }, z.core.$strict>], "schemaVersion">>;
1092
+ createdAt: z.ZodISODateTime;
1093
+ expiresAt: z.ZodISODateTime;
1094
+ }, z.core.$strict>;
1095
+ updatedAt: z.ZodISODateTime;
1096
+ method: z.ZodLiteral<"weight_space_programming">;
1097
+ session: z.ZodNullable<z.ZodObject<{
1098
+ revision: z.ZodNumber;
1099
+ candidateHash: z.ZodString;
1100
+ historyHash: z.ZodString;
1101
+ phase: z.ZodEnum<{
1102
+ busy: "busy";
1103
+ closed: "closed";
1104
+ finalizing: "finalizing";
1105
+ ready: "ready";
1106
+ starting: "starting";
1107
+ }>;
1108
+ pendingOperationId: z.ZodNullable<z.ZodString>;
1109
+ lastActivityAt: z.ZodISODateTime;
1110
+ finalization: z.ZodNullable<z.ZodObject<{
1111
+ operationId: z.ZodString;
1112
+ resultHash: z.ZodString;
1113
+ historyHashBefore: z.ZodString;
1114
+ status: z.ZodEnum<{
1115
+ rejected: "rejected";
1116
+ succeeded: "succeeded";
1117
+ }>;
1118
+ }, z.core.$strict>>;
1119
+ usage: z.ZodObject<{
1120
+ commands: z.ZodNumber;
1121
+ candidates: z.ZodNumber;
1122
+ arithmeticWork: z.ZodNumber;
1123
+ forwardTokenWork: z.ZodNumber;
1124
+ }, z.core.$strict>;
1125
+ }, z.core.$strict>>;
1126
+ }, z.core.$strict>;
1127
+ contentHash: z.ZodString;
1128
+ }, z.core.$strict>;
1129
+ export declare const WeightSpaceCommandReceiptContentSchema: z.ZodObject<{
1130
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandReceipt.v1">;
1131
+ teamId: z.ZodString;
1132
+ ownerUserId: z.ZodString;
1133
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
1134
+ teamId: z.ZodString;
1135
+ sessionId: z.ZodString;
1136
+ operationId: z.ZodString;
1137
+ expectedRevision: z.ZodNumber;
1138
+ candidateHash: z.ZodString;
1139
+ action: z.ZodLiteral<"catalog">;
1140
+ offset: z.ZodNumber;
1141
+ limit: z.ZodNumber;
1142
+ }, z.core.$strict>, z.ZodObject<{
1143
+ layer: z.ZodNumber;
1144
+ columns: z.ZodArray<z.ZodNumber>;
1145
+ teamId: z.ZodString;
1146
+ sessionId: z.ZodString;
1147
+ operationId: z.ZodString;
1148
+ expectedRevision: z.ZodNumber;
1149
+ candidateHash: z.ZodString;
1150
+ action: z.ZodLiteral<"inspect">;
1151
+ }, z.core.$strict>, z.ZodObject<{
1152
+ teamId: z.ZodString;
1153
+ sessionId: z.ZodString;
1154
+ operationId: z.ZodString;
1155
+ expectedRevision: z.ZodNumber;
1156
+ candidateHash: z.ZodString;
1157
+ action: z.ZodLiteral<"program">;
1158
+ program: z.ZodObject<{
1159
+ instructions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1160
+ op: z.ZodLiteral<"read_tensor">;
1161
+ out: z.ZodString;
1162
+ name: z.ZodString;
1163
+ source: z.ZodEnum<{
1164
+ base: "base";
1165
+ candidate: "candidate";
1166
+ }>;
1167
+ ranges: z.ZodArray<z.ZodObject<{
1168
+ start: z.ZodNumber;
1169
+ stop: z.ZodNumber;
1170
+ }, z.core.$strict>>;
1171
+ }, z.core.$strict>, z.ZodObject<{
1172
+ layer: z.ZodNumber;
1173
+ columns: z.ZodArray<z.ZodNumber>;
1174
+ op: z.ZodLiteral<"read">;
1175
+ out: z.ZodString;
1176
+ source: z.ZodEnum<{
1177
+ base: "base";
1178
+ candidate: "candidate";
1179
+ }>;
1180
+ }, z.core.$strict>, z.ZodObject<{
1181
+ op: z.ZodLiteral<"literal">;
1182
+ out: z.ZodString;
1183
+ shape: z.ZodArray<z.ZodNumber>;
1184
+ values: z.ZodArray<z.ZodNumber>;
1185
+ }, z.core.$strict>, z.ZodObject<{
1186
+ op: z.ZodLiteral<"scale">;
1187
+ out: z.ZodString;
1188
+ input: z.ZodString;
1189
+ factor: z.ZodNumber;
1190
+ }, z.core.$strict>, z.ZodObject<{
1191
+ op: z.ZodEnum<{
1192
+ add: "add";
1193
+ matmul: "matmul";
1194
+ subtract: "subtract";
1195
+ }>;
1196
+ out: z.ZodString;
1197
+ left: z.ZodString;
1198
+ right: z.ZodString;
1199
+ }, z.core.$strict>, z.ZodObject<{
1200
+ op: z.ZodEnum<{
1201
+ mean_columns: "mean_columns";
1202
+ normalize_columns: "normalize_columns";
1203
+ singular_vectors: "singular_vectors";
1204
+ transpose: "transpose";
1205
+ }>;
1206
+ out: z.ZodString;
1207
+ input: z.ZodString;
1208
+ }, z.core.$strict>, z.ZodObject<{
1209
+ op: z.ZodLiteral<"slice">;
1210
+ out: z.ZodString;
1211
+ input: z.ZodString;
1212
+ axis: z.ZodNumber;
1213
+ start: z.ZodNumber;
1214
+ stop: z.ZodNumber;
1215
+ }, z.core.$strict>, z.ZodObject<{
1216
+ layer: z.ZodNumber;
1217
+ columns: z.ZodArray<z.ZodNumber>;
1218
+ op: z.ZodLiteral<"write">;
1219
+ input: z.ZodString;
1220
+ }, z.core.$strict>], "op">>;
1221
+ returns: z.ZodArray<z.ZodString>;
1222
+ }, z.core.$strict>;
1223
+ hypothesis: z.ZodString;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ teamId: z.ZodString;
1226
+ sessionId: z.ZodString;
1227
+ operationId: z.ZodString;
1228
+ expectedRevision: z.ZodNumber;
1229
+ candidateHash: z.ZodString;
1230
+ action: z.ZodLiteral<"code">;
1231
+ code: z.ZodString;
1232
+ hypothesis: z.ZodString;
1233
+ }, z.core.$strict>, z.ZodObject<{
1234
+ teamId: z.ZodString;
1235
+ sessionId: z.ZodString;
1236
+ operationId: z.ZodString;
1237
+ expectedRevision: z.ZodNumber;
1238
+ candidateHash: z.ZodString;
1239
+ action: z.ZodLiteral<"evaluate">;
1240
+ panelId: z.ZodString;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ teamId: z.ZodString;
1243
+ sessionId: z.ZodString;
1244
+ operationId: z.ZodString;
1245
+ expectedRevision: z.ZodNumber;
1246
+ candidateHash: z.ZodString;
1247
+ action: z.ZodLiteral<"select">;
1248
+ targetCandidateHash: z.ZodString;
1249
+ }, z.core.$strict>, z.ZodObject<{
1250
+ teamId: z.ZodString;
1251
+ sessionId: z.ZodString;
1252
+ operationId: z.ZodString;
1253
+ expectedRevision: z.ZodNumber;
1254
+ candidateHash: z.ZodString;
1255
+ action: z.ZodLiteral<"finalize">;
1256
+ }, z.core.$strict>], "action">;
1257
+ requestHash: z.ZodString;
1258
+ state: z.ZodEnum<{
1259
+ completed: "completed";
1260
+ queued: "queued";
1261
+ }>;
1262
+ result: z.ZodNullable<z.ZodObject<{
1263
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandResult.v1">;
1264
+ sessionId: z.ZodString;
1265
+ operationId: z.ZodString;
1266
+ requestHash: z.ZodString;
1267
+ revision: z.ZodNumber;
1268
+ parentCandidateHash: z.ZodString;
1269
+ candidateHash: z.ZodString;
1270
+ changedColumns: z.ZodArray<z.ZodObject<{
1271
+ layer: z.ZodNumber;
1272
+ columns: z.ZodArray<z.ZodNumber>;
1273
+ }, z.core.$strict>>;
1274
+ status: z.ZodEnum<{
1275
+ rejected: "rejected";
1276
+ succeeded: "succeeded";
1277
+ }>;
1278
+ code: z.ZodNullable<z.ZodString>;
1279
+ catalog: z.ZodNullable<z.ZodObject<{
1280
+ items: z.ZodArray<z.ZodObject<{
1281
+ name: z.ZodString;
1282
+ shape: z.ZodArray<z.ZodNumber>;
1283
+ dtype: z.ZodLiteral<"BF16">;
1284
+ editable: z.ZodBoolean;
1285
+ }, z.core.$strict>>;
1286
+ nextOffset: z.ZodNullable<z.ZodNumber>;
1287
+ }, z.core.$strict>>;
1288
+ tensors: z.ZodRecord<z.ZodString, z.ZodObject<{
1289
+ shape: z.ZodArray<z.ZodNumber>;
1290
+ minimum: z.ZodNumber;
1291
+ maximum: z.ZodNumber;
1292
+ mean: z.ZodNumber;
1293
+ norm: z.ZodNumber;
1294
+ values: z.ZodArray<z.ZodNumber>;
1295
+ truncated: z.ZodBoolean;
1296
+ }, z.core.$strict>>;
1297
+ evaluation: z.ZodNullable<z.ZodObject<{
1298
+ panelId: z.ZodString;
1299
+ role: z.ZodEnum<{
1300
+ development: "development";
1301
+ preservation: "preservation";
1302
+ }>;
1303
+ candidateHash: z.ZodString;
1304
+ sampling: z.ZodLiteral<"greedy_v1">;
1305
+ seed: z.ZodNumber;
1306
+ rows: z.ZodArray<z.ZodObject<{
1307
+ id: z.ZodString;
1308
+ inputHash: z.ZodString;
1309
+ outputIds: z.ZodArray<z.ZodNumber>;
1310
+ outputText: z.ZodString;
1311
+ reachedTokenLimit: z.ZodBoolean;
1312
+ forwardTokenWork: z.ZodNumber;
1313
+ }, z.core.$strict>>;
1314
+ }, z.core.$strict>>;
1315
+ finalEvaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1316
+ panelId: z.ZodString;
1317
+ candidateHash: z.ZodString;
1318
+ sampling: z.ZodLiteral<"greedy_v1">;
1319
+ seed: z.ZodNumber;
1320
+ rows: z.ZodArray<z.ZodObject<{
1321
+ id: z.ZodString;
1322
+ inputHash: z.ZodString;
1323
+ outputIds: z.ZodArray<z.ZodNumber>;
1324
+ outputText: z.ZodString;
1325
+ reachedTokenLimit: z.ZodBoolean;
1326
+ forwardTokenWork: z.ZodNumber;
1327
+ }, z.core.$strict>>;
1328
+ role: z.ZodLiteral<"frozen">;
1329
+ source: z.ZodObject<{
1330
+ id: z.ZodString;
1331
+ contentHash: z.ZodString;
1332
+ revision: z.ZodNumber;
1333
+ }, z.core.$strict>;
1334
+ baseline: z.ZodObject<{
1335
+ candidateHash: z.ZodString;
1336
+ rows: z.ZodArray<z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ inputHash: z.ZodString;
1339
+ outputIds: z.ZodArray<z.ZodNumber>;
1340
+ outputText: z.ZodString;
1341
+ reachedTokenLimit: z.ZodBoolean;
1342
+ forwardTokenWork: z.ZodNumber;
1343
+ }, z.core.$strict>>;
1344
+ }, z.core.$strict>;
1345
+ }, z.core.$strict>>>;
1346
+ usage: z.ZodObject<{
1347
+ commands: z.ZodNumber;
1348
+ candidates: z.ZodNumber;
1349
+ arithmeticWork: z.ZodNumber;
1350
+ forwardTokenWork: z.ZodNumber;
1351
+ }, z.core.$strict>;
1352
+ contentHash: z.ZodString;
1353
+ }, z.core.$strict>>;
1354
+ }, z.core.$strict>;
1355
+ export declare const WeightSpaceCommandReceiptSchema: z.ZodObject<{
1356
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandReceipt.v1">;
1357
+ teamId: z.ZodString;
1358
+ ownerUserId: z.ZodString;
1359
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
1360
+ teamId: z.ZodString;
1361
+ sessionId: z.ZodString;
1362
+ operationId: z.ZodString;
1363
+ expectedRevision: z.ZodNumber;
1364
+ candidateHash: z.ZodString;
1365
+ action: z.ZodLiteral<"catalog">;
1366
+ offset: z.ZodNumber;
1367
+ limit: z.ZodNumber;
1368
+ }, z.core.$strict>, z.ZodObject<{
1369
+ layer: z.ZodNumber;
1370
+ columns: z.ZodArray<z.ZodNumber>;
1371
+ teamId: z.ZodString;
1372
+ sessionId: z.ZodString;
1373
+ operationId: z.ZodString;
1374
+ expectedRevision: z.ZodNumber;
1375
+ candidateHash: z.ZodString;
1376
+ action: z.ZodLiteral<"inspect">;
1377
+ }, z.core.$strict>, z.ZodObject<{
1378
+ teamId: z.ZodString;
1379
+ sessionId: z.ZodString;
1380
+ operationId: z.ZodString;
1381
+ expectedRevision: z.ZodNumber;
1382
+ candidateHash: z.ZodString;
1383
+ action: z.ZodLiteral<"program">;
1384
+ program: z.ZodObject<{
1385
+ instructions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1386
+ op: z.ZodLiteral<"read_tensor">;
1387
+ out: z.ZodString;
1388
+ name: z.ZodString;
1389
+ source: z.ZodEnum<{
1390
+ base: "base";
1391
+ candidate: "candidate";
1392
+ }>;
1393
+ ranges: z.ZodArray<z.ZodObject<{
1394
+ start: z.ZodNumber;
1395
+ stop: z.ZodNumber;
1396
+ }, z.core.$strict>>;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ layer: z.ZodNumber;
1399
+ columns: z.ZodArray<z.ZodNumber>;
1400
+ op: z.ZodLiteral<"read">;
1401
+ out: z.ZodString;
1402
+ source: z.ZodEnum<{
1403
+ base: "base";
1404
+ candidate: "candidate";
1405
+ }>;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ op: z.ZodLiteral<"literal">;
1408
+ out: z.ZodString;
1409
+ shape: z.ZodArray<z.ZodNumber>;
1410
+ values: z.ZodArray<z.ZodNumber>;
1411
+ }, z.core.$strict>, z.ZodObject<{
1412
+ op: z.ZodLiteral<"scale">;
1413
+ out: z.ZodString;
1414
+ input: z.ZodString;
1415
+ factor: z.ZodNumber;
1416
+ }, z.core.$strict>, z.ZodObject<{
1417
+ op: z.ZodEnum<{
1418
+ add: "add";
1419
+ matmul: "matmul";
1420
+ subtract: "subtract";
1421
+ }>;
1422
+ out: z.ZodString;
1423
+ left: z.ZodString;
1424
+ right: z.ZodString;
1425
+ }, z.core.$strict>, z.ZodObject<{
1426
+ op: z.ZodEnum<{
1427
+ mean_columns: "mean_columns";
1428
+ normalize_columns: "normalize_columns";
1429
+ singular_vectors: "singular_vectors";
1430
+ transpose: "transpose";
1431
+ }>;
1432
+ out: z.ZodString;
1433
+ input: z.ZodString;
1434
+ }, z.core.$strict>, z.ZodObject<{
1435
+ op: z.ZodLiteral<"slice">;
1436
+ out: z.ZodString;
1437
+ input: z.ZodString;
1438
+ axis: z.ZodNumber;
1439
+ start: z.ZodNumber;
1440
+ stop: z.ZodNumber;
1441
+ }, z.core.$strict>, z.ZodObject<{
1442
+ layer: z.ZodNumber;
1443
+ columns: z.ZodArray<z.ZodNumber>;
1444
+ op: z.ZodLiteral<"write">;
1445
+ input: z.ZodString;
1446
+ }, z.core.$strict>], "op">>;
1447
+ returns: z.ZodArray<z.ZodString>;
1448
+ }, z.core.$strict>;
1449
+ hypothesis: z.ZodString;
1450
+ }, z.core.$strict>, z.ZodObject<{
1451
+ teamId: z.ZodString;
1452
+ sessionId: z.ZodString;
1453
+ operationId: z.ZodString;
1454
+ expectedRevision: z.ZodNumber;
1455
+ candidateHash: z.ZodString;
1456
+ action: z.ZodLiteral<"code">;
1457
+ code: z.ZodString;
1458
+ hypothesis: z.ZodString;
1459
+ }, z.core.$strict>, z.ZodObject<{
1460
+ teamId: z.ZodString;
1461
+ sessionId: z.ZodString;
1462
+ operationId: z.ZodString;
1463
+ expectedRevision: z.ZodNumber;
1464
+ candidateHash: z.ZodString;
1465
+ action: z.ZodLiteral<"evaluate">;
1466
+ panelId: z.ZodString;
1467
+ }, z.core.$strict>, z.ZodObject<{
1468
+ teamId: z.ZodString;
1469
+ sessionId: z.ZodString;
1470
+ operationId: z.ZodString;
1471
+ expectedRevision: z.ZodNumber;
1472
+ candidateHash: z.ZodString;
1473
+ action: z.ZodLiteral<"select">;
1474
+ targetCandidateHash: z.ZodString;
1475
+ }, z.core.$strict>, z.ZodObject<{
1476
+ teamId: z.ZodString;
1477
+ sessionId: z.ZodString;
1478
+ operationId: z.ZodString;
1479
+ expectedRevision: z.ZodNumber;
1480
+ candidateHash: z.ZodString;
1481
+ action: z.ZodLiteral<"finalize">;
1482
+ }, z.core.$strict>], "action">;
1483
+ requestHash: z.ZodString;
1484
+ state: z.ZodEnum<{
1485
+ completed: "completed";
1486
+ queued: "queued";
1487
+ }>;
1488
+ result: z.ZodNullable<z.ZodObject<{
1489
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandResult.v1">;
1490
+ sessionId: z.ZodString;
1491
+ operationId: z.ZodString;
1492
+ requestHash: z.ZodString;
1493
+ revision: z.ZodNumber;
1494
+ parentCandidateHash: z.ZodString;
1495
+ candidateHash: z.ZodString;
1496
+ changedColumns: z.ZodArray<z.ZodObject<{
1497
+ layer: z.ZodNumber;
1498
+ columns: z.ZodArray<z.ZodNumber>;
1499
+ }, z.core.$strict>>;
1500
+ status: z.ZodEnum<{
1501
+ rejected: "rejected";
1502
+ succeeded: "succeeded";
1503
+ }>;
1504
+ code: z.ZodNullable<z.ZodString>;
1505
+ catalog: z.ZodNullable<z.ZodObject<{
1506
+ items: z.ZodArray<z.ZodObject<{
1507
+ name: z.ZodString;
1508
+ shape: z.ZodArray<z.ZodNumber>;
1509
+ dtype: z.ZodLiteral<"BF16">;
1510
+ editable: z.ZodBoolean;
1511
+ }, z.core.$strict>>;
1512
+ nextOffset: z.ZodNullable<z.ZodNumber>;
1513
+ }, z.core.$strict>>;
1514
+ tensors: z.ZodRecord<z.ZodString, z.ZodObject<{
1515
+ shape: z.ZodArray<z.ZodNumber>;
1516
+ minimum: z.ZodNumber;
1517
+ maximum: z.ZodNumber;
1518
+ mean: z.ZodNumber;
1519
+ norm: z.ZodNumber;
1520
+ values: z.ZodArray<z.ZodNumber>;
1521
+ truncated: z.ZodBoolean;
1522
+ }, z.core.$strict>>;
1523
+ evaluation: z.ZodNullable<z.ZodObject<{
1524
+ panelId: z.ZodString;
1525
+ role: z.ZodEnum<{
1526
+ development: "development";
1527
+ preservation: "preservation";
1528
+ }>;
1529
+ candidateHash: z.ZodString;
1530
+ sampling: z.ZodLiteral<"greedy_v1">;
1531
+ seed: z.ZodNumber;
1532
+ rows: z.ZodArray<z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ inputHash: z.ZodString;
1535
+ outputIds: z.ZodArray<z.ZodNumber>;
1536
+ outputText: z.ZodString;
1537
+ reachedTokenLimit: z.ZodBoolean;
1538
+ forwardTokenWork: z.ZodNumber;
1539
+ }, z.core.$strict>>;
1540
+ }, z.core.$strict>>;
1541
+ finalEvaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1542
+ panelId: z.ZodString;
1543
+ candidateHash: z.ZodString;
1544
+ sampling: z.ZodLiteral<"greedy_v1">;
1545
+ seed: z.ZodNumber;
1546
+ rows: z.ZodArray<z.ZodObject<{
1547
+ id: z.ZodString;
1548
+ inputHash: z.ZodString;
1549
+ outputIds: z.ZodArray<z.ZodNumber>;
1550
+ outputText: z.ZodString;
1551
+ reachedTokenLimit: z.ZodBoolean;
1552
+ forwardTokenWork: z.ZodNumber;
1553
+ }, z.core.$strict>>;
1554
+ role: z.ZodLiteral<"frozen">;
1555
+ source: z.ZodObject<{
1556
+ id: z.ZodString;
1557
+ contentHash: z.ZodString;
1558
+ revision: z.ZodNumber;
1559
+ }, z.core.$strict>;
1560
+ baseline: z.ZodObject<{
1561
+ candidateHash: z.ZodString;
1562
+ rows: z.ZodArray<z.ZodObject<{
1563
+ id: z.ZodString;
1564
+ inputHash: z.ZodString;
1565
+ outputIds: z.ZodArray<z.ZodNumber>;
1566
+ outputText: z.ZodString;
1567
+ reachedTokenLimit: z.ZodBoolean;
1568
+ forwardTokenWork: z.ZodNumber;
1569
+ }, z.core.$strict>>;
1570
+ }, z.core.$strict>;
1571
+ }, z.core.$strict>>>;
1572
+ usage: z.ZodObject<{
1573
+ commands: z.ZodNumber;
1574
+ candidates: z.ZodNumber;
1575
+ arithmeticWork: z.ZodNumber;
1576
+ forwardTokenWork: z.ZodNumber;
1577
+ }, z.core.$strict>;
1578
+ contentHash: z.ZodString;
1579
+ }, z.core.$strict>>;
1580
+ contentHash: z.ZodString;
1581
+ }, z.core.$strict>;
1582
+ export declare const WeightSpaceExecutionListQuerySchema: z.ZodObject<{
1583
+ method: z.ZodDefault<z.ZodLiteral<"weight_space_programming">>;
1584
+ projectId: z.ZodOptional<z.ZodString>;
1585
+ id: z.ZodOptional<z.ZodString>;
1586
+ phase: z.ZodOptional<z.ZodEnum<{
1587
+ cancelled: "cancelled";
1588
+ completed: "completed";
1589
+ dispatching: "dispatching";
1590
+ failed: "failed";
1591
+ prepared: "prepared";
1592
+ queued: "queued";
1593
+ stopping: "stopping";
1594
+ }>>;
1595
+ cursor: z.ZodOptional<z.ZodString>;
1596
+ limit: z.ZodDefault<z.ZodNumber>;
1597
+ }, z.core.$strict>;
1598
+ export declare const WeightSpaceExecutionPageContentSchema: z.ZodObject<{
1599
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecutionPage.v1">;
1600
+ teamId: z.ZodString;
1601
+ ownerUserId: z.ZodString;
1602
+ query: z.ZodObject<{
1603
+ method: z.ZodDefault<z.ZodLiteral<"weight_space_programming">>;
1604
+ projectId: z.ZodOptional<z.ZodString>;
1605
+ id: z.ZodOptional<z.ZodString>;
1606
+ phase: z.ZodOptional<z.ZodEnum<{
1607
+ cancelled: "cancelled";
1608
+ completed: "completed";
1609
+ dispatching: "dispatching";
1610
+ failed: "failed";
1611
+ prepared: "prepared";
1612
+ queued: "queued";
1613
+ stopping: "stopping";
1614
+ }>>;
1615
+ cursor: z.ZodOptional<z.ZodString>;
1616
+ limit: z.ZodDefault<z.ZodNumber>;
1617
+ }, z.core.$strict>;
1618
+ items: z.ZodArray<z.ZodObject<{
1619
+ id: z.ZodString;
1620
+ teamId: z.ZodString;
1621
+ ownerUserId: z.ZodString;
1622
+ projectId: z.ZodNullable<z.ZodString>;
1623
+ name: z.ZodString;
1624
+ phase: z.ZodEnum<{
1625
+ cancelled: "cancelled";
1626
+ completed: "completed";
1627
+ dispatching: "dispatching";
1628
+ failed: "failed";
1629
+ prepared: "prepared";
1630
+ queued: "queued";
1631
+ stopping: "stopping";
1632
+ }>;
1633
+ revision: z.ZodNumber;
1634
+ sourceContentHash: z.ZodString;
1635
+ plan: z.ZodObject<{
1636
+ contentHash: z.ZodString;
1637
+ inputHash: z.ZodString;
1638
+ runtimeHash: z.ZodString;
1639
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
1640
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1641
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
1642
+ appliedPrice: z.ZodObject<{
1643
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1644
+ version: z.ZodString;
1645
+ profileHash: z.ZodString;
1646
+ currency: z.ZodLiteral<"USD">;
1647
+ unit: z.ZodLiteral<"resource_hour">;
1648
+ hourlyUsd: z.ZodString;
1649
+ service: z.ZodLiteral<"model_modification">;
1650
+ }, z.core.$strict>;
1651
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1652
+ startupBillable: z.ZodLiteral<true>;
1653
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1654
+ minimumBillableSeconds: z.ZodLiteral<0>;
1655
+ warmReuseSeconds: z.ZodLiteral<300>;
1656
+ }, z.core.$strict>, z.ZodObject<{
1657
+ appliedPrice: z.ZodObject<{
1658
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1659
+ version: z.ZodString;
1660
+ profileHash: z.ZodString;
1661
+ currency: z.ZodLiteral<"USD">;
1662
+ unit: z.ZodLiteral<"resource_hour">;
1663
+ hourlyUsd: z.ZodString;
1664
+ service: z.ZodLiteral<"model_modification">;
1665
+ }, z.core.$strict>;
1666
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1667
+ startupBillable: z.ZodLiteral<true>;
1668
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1669
+ minimumBillableSeconds: z.ZodLiteral<0>;
1670
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
1671
+ warmReuseSeconds: z.ZodLiteral<0>;
1672
+ }, z.core.$strict>], "schemaVersion">>;
1673
+ createdAt: z.ZodISODateTime;
1674
+ expiresAt: z.ZodISODateTime;
1675
+ }, z.core.$strict>;
1676
+ updatedAt: z.ZodISODateTime;
1677
+ method: z.ZodLiteral<"weight_space_programming">;
1678
+ session: z.ZodNullable<z.ZodObject<{
1679
+ revision: z.ZodNumber;
1680
+ candidateHash: z.ZodString;
1681
+ historyHash: z.ZodString;
1682
+ phase: z.ZodEnum<{
1683
+ busy: "busy";
1684
+ closed: "closed";
1685
+ finalizing: "finalizing";
1686
+ ready: "ready";
1687
+ starting: "starting";
1688
+ }>;
1689
+ pendingOperationId: z.ZodNullable<z.ZodString>;
1690
+ lastActivityAt: z.ZodISODateTime;
1691
+ finalization: z.ZodNullable<z.ZodObject<{
1692
+ operationId: z.ZodString;
1693
+ resultHash: z.ZodString;
1694
+ historyHashBefore: z.ZodString;
1695
+ status: z.ZodEnum<{
1696
+ rejected: "rejected";
1697
+ succeeded: "succeeded";
1698
+ }>;
1699
+ }, z.core.$strict>>;
1700
+ usage: z.ZodObject<{
1701
+ commands: z.ZodNumber;
1702
+ candidates: z.ZodNumber;
1703
+ arithmeticWork: z.ZodNumber;
1704
+ forwardTokenWork: z.ZodNumber;
1705
+ }, z.core.$strict>;
1706
+ }, z.core.$strict>>;
1707
+ model: z.ZodObject<{
1708
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
1709
+ modelId: z.ZodString;
1710
+ revision: z.ZodString;
1711
+ configHash: z.ZodString;
1712
+ weightsHash: z.ZodString;
1713
+ tokenizerHash: z.ZodString;
1714
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
1715
+ architecture: z.ZodLiteral<"dense_decoder">;
1716
+ dtype: z.ZodEnum<{
1717
+ bfloat16: "bfloat16";
1718
+ float16: "float16";
1719
+ float32: "float32";
1720
+ }>;
1721
+ quantization: z.ZodLiteral<"none">;
1722
+ adapter: z.ZodNull;
1723
+ hiddenSize: z.ZodNumber;
1724
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
1725
+ }, z.core.$strict>;
1726
+ }, z.core.$strict>>;
1727
+ nextCursor: z.ZodNullable<z.ZodString>;
1728
+ }, z.core.$strict>;
1729
+ export declare const WeightSpaceExecutionPageSchema: z.ZodObject<{
1730
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceExecutionPage.v1">;
1731
+ teamId: z.ZodString;
1732
+ ownerUserId: z.ZodString;
1733
+ query: z.ZodObject<{
1734
+ method: z.ZodDefault<z.ZodLiteral<"weight_space_programming">>;
1735
+ projectId: z.ZodOptional<z.ZodString>;
1736
+ id: z.ZodOptional<z.ZodString>;
1737
+ phase: z.ZodOptional<z.ZodEnum<{
1738
+ cancelled: "cancelled";
1739
+ completed: "completed";
1740
+ dispatching: "dispatching";
1741
+ failed: "failed";
1742
+ prepared: "prepared";
1743
+ queued: "queued";
1744
+ stopping: "stopping";
1745
+ }>>;
1746
+ cursor: z.ZodOptional<z.ZodString>;
1747
+ limit: z.ZodDefault<z.ZodNumber>;
1748
+ }, z.core.$strict>;
1749
+ items: z.ZodArray<z.ZodObject<{
1750
+ id: z.ZodString;
1751
+ teamId: z.ZodString;
1752
+ ownerUserId: z.ZodString;
1753
+ projectId: z.ZodNullable<z.ZodString>;
1754
+ name: z.ZodString;
1755
+ phase: z.ZodEnum<{
1756
+ cancelled: "cancelled";
1757
+ completed: "completed";
1758
+ dispatching: "dispatching";
1759
+ failed: "failed";
1760
+ prepared: "prepared";
1761
+ queued: "queued";
1762
+ stopping: "stopping";
1763
+ }>;
1764
+ revision: z.ZodNumber;
1765
+ sourceContentHash: z.ZodString;
1766
+ plan: z.ZodObject<{
1767
+ contentHash: z.ZodString;
1768
+ inputHash: z.ZodString;
1769
+ runtimeHash: z.ZodString;
1770
+ maximumSpendUsd: z.ZodNullable<z.ZodString>;
1771
+ computePrice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v1">;
1773
+ appliedPrice: z.ZodObject<{
1774
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1775
+ version: z.ZodString;
1776
+ profileHash: z.ZodString;
1777
+ currency: z.ZodLiteral<"USD">;
1778
+ unit: z.ZodLiteral<"resource_hour">;
1779
+ hourlyUsd: z.ZodString;
1780
+ service: z.ZodLiteral<"model_modification">;
1781
+ }, z.core.$strict>;
1782
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1783
+ startupBillable: z.ZodLiteral<true>;
1784
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1785
+ minimumBillableSeconds: z.ZodLiteral<0>;
1786
+ warmReuseSeconds: z.ZodLiteral<300>;
1787
+ }, z.core.$strict>, z.ZodObject<{
1788
+ appliedPrice: z.ZodObject<{
1789
+ schemaVersion: z.ZodLiteral<"openpond.computeAppliedPrice.v1">;
1790
+ version: z.ZodString;
1791
+ profileHash: z.ZodString;
1792
+ currency: z.ZodLiteral<"USD">;
1793
+ unit: z.ZodLiteral<"resource_hour">;
1794
+ hourlyUsd: z.ZodString;
1795
+ service: z.ZodLiteral<"model_modification">;
1796
+ }, z.core.$strict>;
1797
+ billingBoundary: z.ZodLiteral<"active_allocation_until_verified_cleanup">;
1798
+ startupBillable: z.ZodLiteral<true>;
1799
+ postCompletionIdleBillable: z.ZodLiteral<false>;
1800
+ minimumBillableSeconds: z.ZodLiteral<0>;
1801
+ schemaVersion: z.ZodLiteral<"openpond.modificationPrice.v2">;
1802
+ warmReuseSeconds: z.ZodLiteral<0>;
1803
+ }, z.core.$strict>], "schemaVersion">>;
1804
+ createdAt: z.ZodISODateTime;
1805
+ expiresAt: z.ZodISODateTime;
1806
+ }, z.core.$strict>;
1807
+ updatedAt: z.ZodISODateTime;
1808
+ method: z.ZodLiteral<"weight_space_programming">;
1809
+ session: z.ZodNullable<z.ZodObject<{
1810
+ revision: z.ZodNumber;
1811
+ candidateHash: z.ZodString;
1812
+ historyHash: z.ZodString;
1813
+ phase: z.ZodEnum<{
1814
+ busy: "busy";
1815
+ closed: "closed";
1816
+ finalizing: "finalizing";
1817
+ ready: "ready";
1818
+ starting: "starting";
1819
+ }>;
1820
+ pendingOperationId: z.ZodNullable<z.ZodString>;
1821
+ lastActivityAt: z.ZodISODateTime;
1822
+ finalization: z.ZodNullable<z.ZodObject<{
1823
+ operationId: z.ZodString;
1824
+ resultHash: z.ZodString;
1825
+ historyHashBefore: z.ZodString;
1826
+ status: z.ZodEnum<{
1827
+ rejected: "rejected";
1828
+ succeeded: "succeeded";
1829
+ }>;
1830
+ }, z.core.$strict>>;
1831
+ usage: z.ZodObject<{
1832
+ commands: z.ZodNumber;
1833
+ candidates: z.ZodNumber;
1834
+ arithmeticWork: z.ZodNumber;
1835
+ forwardTokenWork: z.ZodNumber;
1836
+ }, z.core.$strict>;
1837
+ }, z.core.$strict>>;
1838
+ model: z.ZodObject<{
1839
+ schemaVersion: z.ZodLiteral<"openpond.neuronSteeringModel.v1">;
1840
+ modelId: z.ZodString;
1841
+ revision: z.ZodString;
1842
+ configHash: z.ZodString;
1843
+ weightsHash: z.ZodString;
1844
+ tokenizerHash: z.ZodString;
1845
+ weightIdentity: z.ZodLiteral<"torch_state_dict_sha256_v1">;
1846
+ architecture: z.ZodLiteral<"dense_decoder">;
1847
+ dtype: z.ZodEnum<{
1848
+ bfloat16: "bfloat16";
1849
+ float16: "float16";
1850
+ float32: "float32";
1851
+ }>;
1852
+ quantization: z.ZodLiteral<"none">;
1853
+ adapter: z.ZodNull;
1854
+ hiddenSize: z.ZodNumber;
1855
+ intermediateSizes: z.ZodArray<z.ZodNumber>;
1856
+ }, z.core.$strict>;
1857
+ }, z.core.$strict>>;
1858
+ nextCursor: z.ZodNullable<z.ZodString>;
1859
+ contentHash: z.ZodString;
1860
+ }, z.core.$strict>;
1861
+ export type WeightSpaceExecutionPage = z.infer<typeof WeightSpaceExecutionPageSchema>;
1862
+ export declare const WeightSpaceCommandListQuerySchema: z.ZodObject<{
1863
+ afterRevision: z.ZodDefault<z.ZodNumber>;
1864
+ limit: z.ZodDefault<z.ZodNumber>;
1865
+ }, z.core.$strict>;
1866
+ export declare const WeightSpaceCommandPageContentSchema: z.ZodObject<{
1867
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandPage.v1">;
1868
+ teamId: z.ZodString;
1869
+ ownerUserId: z.ZodString;
1870
+ sessionId: z.ZodString;
1871
+ query: z.ZodObject<{
1872
+ afterRevision: z.ZodDefault<z.ZodNumber>;
1873
+ limit: z.ZodDefault<z.ZodNumber>;
1874
+ }, z.core.$strict>;
1875
+ items: z.ZodArray<z.ZodObject<{
1876
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandReceipt.v1">;
1877
+ teamId: z.ZodString;
1878
+ ownerUserId: z.ZodString;
1879
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
1880
+ teamId: z.ZodString;
1881
+ sessionId: z.ZodString;
1882
+ operationId: z.ZodString;
1883
+ expectedRevision: z.ZodNumber;
1884
+ candidateHash: z.ZodString;
1885
+ action: z.ZodLiteral<"catalog">;
1886
+ offset: z.ZodNumber;
1887
+ limit: z.ZodNumber;
1888
+ }, z.core.$strict>, z.ZodObject<{
1889
+ layer: z.ZodNumber;
1890
+ columns: z.ZodArray<z.ZodNumber>;
1891
+ teamId: z.ZodString;
1892
+ sessionId: z.ZodString;
1893
+ operationId: z.ZodString;
1894
+ expectedRevision: z.ZodNumber;
1895
+ candidateHash: z.ZodString;
1896
+ action: z.ZodLiteral<"inspect">;
1897
+ }, z.core.$strict>, z.ZodObject<{
1898
+ teamId: z.ZodString;
1899
+ sessionId: z.ZodString;
1900
+ operationId: z.ZodString;
1901
+ expectedRevision: z.ZodNumber;
1902
+ candidateHash: z.ZodString;
1903
+ action: z.ZodLiteral<"program">;
1904
+ program: z.ZodObject<{
1905
+ instructions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1906
+ op: z.ZodLiteral<"read_tensor">;
1907
+ out: z.ZodString;
1908
+ name: z.ZodString;
1909
+ source: z.ZodEnum<{
1910
+ base: "base";
1911
+ candidate: "candidate";
1912
+ }>;
1913
+ ranges: z.ZodArray<z.ZodObject<{
1914
+ start: z.ZodNumber;
1915
+ stop: z.ZodNumber;
1916
+ }, z.core.$strict>>;
1917
+ }, z.core.$strict>, z.ZodObject<{
1918
+ layer: z.ZodNumber;
1919
+ columns: z.ZodArray<z.ZodNumber>;
1920
+ op: z.ZodLiteral<"read">;
1921
+ out: z.ZodString;
1922
+ source: z.ZodEnum<{
1923
+ base: "base";
1924
+ candidate: "candidate";
1925
+ }>;
1926
+ }, z.core.$strict>, z.ZodObject<{
1927
+ op: z.ZodLiteral<"literal">;
1928
+ out: z.ZodString;
1929
+ shape: z.ZodArray<z.ZodNumber>;
1930
+ values: z.ZodArray<z.ZodNumber>;
1931
+ }, z.core.$strict>, z.ZodObject<{
1932
+ op: z.ZodLiteral<"scale">;
1933
+ out: z.ZodString;
1934
+ input: z.ZodString;
1935
+ factor: z.ZodNumber;
1936
+ }, z.core.$strict>, z.ZodObject<{
1937
+ op: z.ZodEnum<{
1938
+ add: "add";
1939
+ matmul: "matmul";
1940
+ subtract: "subtract";
1941
+ }>;
1942
+ out: z.ZodString;
1943
+ left: z.ZodString;
1944
+ right: z.ZodString;
1945
+ }, z.core.$strict>, z.ZodObject<{
1946
+ op: z.ZodEnum<{
1947
+ mean_columns: "mean_columns";
1948
+ normalize_columns: "normalize_columns";
1949
+ singular_vectors: "singular_vectors";
1950
+ transpose: "transpose";
1951
+ }>;
1952
+ out: z.ZodString;
1953
+ input: z.ZodString;
1954
+ }, z.core.$strict>, z.ZodObject<{
1955
+ op: z.ZodLiteral<"slice">;
1956
+ out: z.ZodString;
1957
+ input: z.ZodString;
1958
+ axis: z.ZodNumber;
1959
+ start: z.ZodNumber;
1960
+ stop: z.ZodNumber;
1961
+ }, z.core.$strict>, z.ZodObject<{
1962
+ layer: z.ZodNumber;
1963
+ columns: z.ZodArray<z.ZodNumber>;
1964
+ op: z.ZodLiteral<"write">;
1965
+ input: z.ZodString;
1966
+ }, z.core.$strict>], "op">>;
1967
+ returns: z.ZodArray<z.ZodString>;
1968
+ }, z.core.$strict>;
1969
+ hypothesis: z.ZodString;
1970
+ }, z.core.$strict>, z.ZodObject<{
1971
+ teamId: z.ZodString;
1972
+ sessionId: z.ZodString;
1973
+ operationId: z.ZodString;
1974
+ expectedRevision: z.ZodNumber;
1975
+ candidateHash: z.ZodString;
1976
+ action: z.ZodLiteral<"code">;
1977
+ code: z.ZodString;
1978
+ hypothesis: z.ZodString;
1979
+ }, z.core.$strict>, z.ZodObject<{
1980
+ teamId: z.ZodString;
1981
+ sessionId: z.ZodString;
1982
+ operationId: z.ZodString;
1983
+ expectedRevision: z.ZodNumber;
1984
+ candidateHash: z.ZodString;
1985
+ action: z.ZodLiteral<"evaluate">;
1986
+ panelId: z.ZodString;
1987
+ }, z.core.$strict>, z.ZodObject<{
1988
+ teamId: z.ZodString;
1989
+ sessionId: z.ZodString;
1990
+ operationId: z.ZodString;
1991
+ expectedRevision: z.ZodNumber;
1992
+ candidateHash: z.ZodString;
1993
+ action: z.ZodLiteral<"select">;
1994
+ targetCandidateHash: z.ZodString;
1995
+ }, z.core.$strict>, z.ZodObject<{
1996
+ teamId: z.ZodString;
1997
+ sessionId: z.ZodString;
1998
+ operationId: z.ZodString;
1999
+ expectedRevision: z.ZodNumber;
2000
+ candidateHash: z.ZodString;
2001
+ action: z.ZodLiteral<"finalize">;
2002
+ }, z.core.$strict>], "action">;
2003
+ requestHash: z.ZodString;
2004
+ state: z.ZodEnum<{
2005
+ completed: "completed";
2006
+ queued: "queued";
2007
+ }>;
2008
+ result: z.ZodNullable<z.ZodObject<{
2009
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandResult.v1">;
2010
+ sessionId: z.ZodString;
2011
+ operationId: z.ZodString;
2012
+ requestHash: z.ZodString;
2013
+ revision: z.ZodNumber;
2014
+ parentCandidateHash: z.ZodString;
2015
+ candidateHash: z.ZodString;
2016
+ changedColumns: z.ZodArray<z.ZodObject<{
2017
+ layer: z.ZodNumber;
2018
+ columns: z.ZodArray<z.ZodNumber>;
2019
+ }, z.core.$strict>>;
2020
+ status: z.ZodEnum<{
2021
+ rejected: "rejected";
2022
+ succeeded: "succeeded";
2023
+ }>;
2024
+ code: z.ZodNullable<z.ZodString>;
2025
+ catalog: z.ZodNullable<z.ZodObject<{
2026
+ items: z.ZodArray<z.ZodObject<{
2027
+ name: z.ZodString;
2028
+ shape: z.ZodArray<z.ZodNumber>;
2029
+ dtype: z.ZodLiteral<"BF16">;
2030
+ editable: z.ZodBoolean;
2031
+ }, z.core.$strict>>;
2032
+ nextOffset: z.ZodNullable<z.ZodNumber>;
2033
+ }, z.core.$strict>>;
2034
+ tensors: z.ZodRecord<z.ZodString, z.ZodObject<{
2035
+ shape: z.ZodArray<z.ZodNumber>;
2036
+ minimum: z.ZodNumber;
2037
+ maximum: z.ZodNumber;
2038
+ mean: z.ZodNumber;
2039
+ norm: z.ZodNumber;
2040
+ values: z.ZodArray<z.ZodNumber>;
2041
+ truncated: z.ZodBoolean;
2042
+ }, z.core.$strict>>;
2043
+ evaluation: z.ZodNullable<z.ZodObject<{
2044
+ panelId: z.ZodString;
2045
+ role: z.ZodEnum<{
2046
+ development: "development";
2047
+ preservation: "preservation";
2048
+ }>;
2049
+ candidateHash: z.ZodString;
2050
+ sampling: z.ZodLiteral<"greedy_v1">;
2051
+ seed: z.ZodNumber;
2052
+ rows: z.ZodArray<z.ZodObject<{
2053
+ id: z.ZodString;
2054
+ inputHash: z.ZodString;
2055
+ outputIds: z.ZodArray<z.ZodNumber>;
2056
+ outputText: z.ZodString;
2057
+ reachedTokenLimit: z.ZodBoolean;
2058
+ forwardTokenWork: z.ZodNumber;
2059
+ }, z.core.$strict>>;
2060
+ }, z.core.$strict>>;
2061
+ finalEvaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2062
+ panelId: z.ZodString;
2063
+ candidateHash: z.ZodString;
2064
+ sampling: z.ZodLiteral<"greedy_v1">;
2065
+ seed: z.ZodNumber;
2066
+ rows: z.ZodArray<z.ZodObject<{
2067
+ id: z.ZodString;
2068
+ inputHash: z.ZodString;
2069
+ outputIds: z.ZodArray<z.ZodNumber>;
2070
+ outputText: z.ZodString;
2071
+ reachedTokenLimit: z.ZodBoolean;
2072
+ forwardTokenWork: z.ZodNumber;
2073
+ }, z.core.$strict>>;
2074
+ role: z.ZodLiteral<"frozen">;
2075
+ source: z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ contentHash: z.ZodString;
2078
+ revision: z.ZodNumber;
2079
+ }, z.core.$strict>;
2080
+ baseline: z.ZodObject<{
2081
+ candidateHash: z.ZodString;
2082
+ rows: z.ZodArray<z.ZodObject<{
2083
+ id: z.ZodString;
2084
+ inputHash: z.ZodString;
2085
+ outputIds: z.ZodArray<z.ZodNumber>;
2086
+ outputText: z.ZodString;
2087
+ reachedTokenLimit: z.ZodBoolean;
2088
+ forwardTokenWork: z.ZodNumber;
2089
+ }, z.core.$strict>>;
2090
+ }, z.core.$strict>;
2091
+ }, z.core.$strict>>>;
2092
+ usage: z.ZodObject<{
2093
+ commands: z.ZodNumber;
2094
+ candidates: z.ZodNumber;
2095
+ arithmeticWork: z.ZodNumber;
2096
+ forwardTokenWork: z.ZodNumber;
2097
+ }, z.core.$strict>;
2098
+ contentHash: z.ZodString;
2099
+ }, z.core.$strict>>;
2100
+ contentHash: z.ZodString;
2101
+ }, z.core.$strict>>;
2102
+ nextAfterRevision: z.ZodNullable<z.ZodNumber>;
2103
+ }, z.core.$strict>;
2104
+ export declare const WeightSpaceCommandPageSchema: z.ZodObject<{
2105
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandPage.v1">;
2106
+ teamId: z.ZodString;
2107
+ ownerUserId: z.ZodString;
2108
+ sessionId: z.ZodString;
2109
+ query: z.ZodObject<{
2110
+ afterRevision: z.ZodDefault<z.ZodNumber>;
2111
+ limit: z.ZodDefault<z.ZodNumber>;
2112
+ }, z.core.$strict>;
2113
+ items: z.ZodArray<z.ZodObject<{
2114
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandReceipt.v1">;
2115
+ teamId: z.ZodString;
2116
+ ownerUserId: z.ZodString;
2117
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
2118
+ teamId: z.ZodString;
2119
+ sessionId: z.ZodString;
2120
+ operationId: z.ZodString;
2121
+ expectedRevision: z.ZodNumber;
2122
+ candidateHash: z.ZodString;
2123
+ action: z.ZodLiteral<"catalog">;
2124
+ offset: z.ZodNumber;
2125
+ limit: z.ZodNumber;
2126
+ }, z.core.$strict>, z.ZodObject<{
2127
+ layer: z.ZodNumber;
2128
+ columns: z.ZodArray<z.ZodNumber>;
2129
+ teamId: z.ZodString;
2130
+ sessionId: z.ZodString;
2131
+ operationId: z.ZodString;
2132
+ expectedRevision: z.ZodNumber;
2133
+ candidateHash: z.ZodString;
2134
+ action: z.ZodLiteral<"inspect">;
2135
+ }, z.core.$strict>, z.ZodObject<{
2136
+ teamId: z.ZodString;
2137
+ sessionId: z.ZodString;
2138
+ operationId: z.ZodString;
2139
+ expectedRevision: z.ZodNumber;
2140
+ candidateHash: z.ZodString;
2141
+ action: z.ZodLiteral<"program">;
2142
+ program: z.ZodObject<{
2143
+ instructions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2144
+ op: z.ZodLiteral<"read_tensor">;
2145
+ out: z.ZodString;
2146
+ name: z.ZodString;
2147
+ source: z.ZodEnum<{
2148
+ base: "base";
2149
+ candidate: "candidate";
2150
+ }>;
2151
+ ranges: z.ZodArray<z.ZodObject<{
2152
+ start: z.ZodNumber;
2153
+ stop: z.ZodNumber;
2154
+ }, z.core.$strict>>;
2155
+ }, z.core.$strict>, z.ZodObject<{
2156
+ layer: z.ZodNumber;
2157
+ columns: z.ZodArray<z.ZodNumber>;
2158
+ op: z.ZodLiteral<"read">;
2159
+ out: z.ZodString;
2160
+ source: z.ZodEnum<{
2161
+ base: "base";
2162
+ candidate: "candidate";
2163
+ }>;
2164
+ }, z.core.$strict>, z.ZodObject<{
2165
+ op: z.ZodLiteral<"literal">;
2166
+ out: z.ZodString;
2167
+ shape: z.ZodArray<z.ZodNumber>;
2168
+ values: z.ZodArray<z.ZodNumber>;
2169
+ }, z.core.$strict>, z.ZodObject<{
2170
+ op: z.ZodLiteral<"scale">;
2171
+ out: z.ZodString;
2172
+ input: z.ZodString;
2173
+ factor: z.ZodNumber;
2174
+ }, z.core.$strict>, z.ZodObject<{
2175
+ op: z.ZodEnum<{
2176
+ add: "add";
2177
+ matmul: "matmul";
2178
+ subtract: "subtract";
2179
+ }>;
2180
+ out: z.ZodString;
2181
+ left: z.ZodString;
2182
+ right: z.ZodString;
2183
+ }, z.core.$strict>, z.ZodObject<{
2184
+ op: z.ZodEnum<{
2185
+ mean_columns: "mean_columns";
2186
+ normalize_columns: "normalize_columns";
2187
+ singular_vectors: "singular_vectors";
2188
+ transpose: "transpose";
2189
+ }>;
2190
+ out: z.ZodString;
2191
+ input: z.ZodString;
2192
+ }, z.core.$strict>, z.ZodObject<{
2193
+ op: z.ZodLiteral<"slice">;
2194
+ out: z.ZodString;
2195
+ input: z.ZodString;
2196
+ axis: z.ZodNumber;
2197
+ start: z.ZodNumber;
2198
+ stop: z.ZodNumber;
2199
+ }, z.core.$strict>, z.ZodObject<{
2200
+ layer: z.ZodNumber;
2201
+ columns: z.ZodArray<z.ZodNumber>;
2202
+ op: z.ZodLiteral<"write">;
2203
+ input: z.ZodString;
2204
+ }, z.core.$strict>], "op">>;
2205
+ returns: z.ZodArray<z.ZodString>;
2206
+ }, z.core.$strict>;
2207
+ hypothesis: z.ZodString;
2208
+ }, z.core.$strict>, z.ZodObject<{
2209
+ teamId: z.ZodString;
2210
+ sessionId: z.ZodString;
2211
+ operationId: z.ZodString;
2212
+ expectedRevision: z.ZodNumber;
2213
+ candidateHash: z.ZodString;
2214
+ action: z.ZodLiteral<"code">;
2215
+ code: z.ZodString;
2216
+ hypothesis: z.ZodString;
2217
+ }, z.core.$strict>, z.ZodObject<{
2218
+ teamId: z.ZodString;
2219
+ sessionId: z.ZodString;
2220
+ operationId: z.ZodString;
2221
+ expectedRevision: z.ZodNumber;
2222
+ candidateHash: z.ZodString;
2223
+ action: z.ZodLiteral<"evaluate">;
2224
+ panelId: z.ZodString;
2225
+ }, z.core.$strict>, z.ZodObject<{
2226
+ teamId: z.ZodString;
2227
+ sessionId: z.ZodString;
2228
+ operationId: z.ZodString;
2229
+ expectedRevision: z.ZodNumber;
2230
+ candidateHash: z.ZodString;
2231
+ action: z.ZodLiteral<"select">;
2232
+ targetCandidateHash: z.ZodString;
2233
+ }, z.core.$strict>, z.ZodObject<{
2234
+ teamId: z.ZodString;
2235
+ sessionId: z.ZodString;
2236
+ operationId: z.ZodString;
2237
+ expectedRevision: z.ZodNumber;
2238
+ candidateHash: z.ZodString;
2239
+ action: z.ZodLiteral<"finalize">;
2240
+ }, z.core.$strict>], "action">;
2241
+ requestHash: z.ZodString;
2242
+ state: z.ZodEnum<{
2243
+ completed: "completed";
2244
+ queued: "queued";
2245
+ }>;
2246
+ result: z.ZodNullable<z.ZodObject<{
2247
+ schemaVersion: z.ZodLiteral<"openpond.weightSpaceCommandResult.v1">;
2248
+ sessionId: z.ZodString;
2249
+ operationId: z.ZodString;
2250
+ requestHash: z.ZodString;
2251
+ revision: z.ZodNumber;
2252
+ parentCandidateHash: z.ZodString;
2253
+ candidateHash: z.ZodString;
2254
+ changedColumns: z.ZodArray<z.ZodObject<{
2255
+ layer: z.ZodNumber;
2256
+ columns: z.ZodArray<z.ZodNumber>;
2257
+ }, z.core.$strict>>;
2258
+ status: z.ZodEnum<{
2259
+ rejected: "rejected";
2260
+ succeeded: "succeeded";
2261
+ }>;
2262
+ code: z.ZodNullable<z.ZodString>;
2263
+ catalog: z.ZodNullable<z.ZodObject<{
2264
+ items: z.ZodArray<z.ZodObject<{
2265
+ name: z.ZodString;
2266
+ shape: z.ZodArray<z.ZodNumber>;
2267
+ dtype: z.ZodLiteral<"BF16">;
2268
+ editable: z.ZodBoolean;
2269
+ }, z.core.$strict>>;
2270
+ nextOffset: z.ZodNullable<z.ZodNumber>;
2271
+ }, z.core.$strict>>;
2272
+ tensors: z.ZodRecord<z.ZodString, z.ZodObject<{
2273
+ shape: z.ZodArray<z.ZodNumber>;
2274
+ minimum: z.ZodNumber;
2275
+ maximum: z.ZodNumber;
2276
+ mean: z.ZodNumber;
2277
+ norm: z.ZodNumber;
2278
+ values: z.ZodArray<z.ZodNumber>;
2279
+ truncated: z.ZodBoolean;
2280
+ }, z.core.$strict>>;
2281
+ evaluation: z.ZodNullable<z.ZodObject<{
2282
+ panelId: z.ZodString;
2283
+ role: z.ZodEnum<{
2284
+ development: "development";
2285
+ preservation: "preservation";
2286
+ }>;
2287
+ candidateHash: z.ZodString;
2288
+ sampling: z.ZodLiteral<"greedy_v1">;
2289
+ seed: z.ZodNumber;
2290
+ rows: z.ZodArray<z.ZodObject<{
2291
+ id: z.ZodString;
2292
+ inputHash: z.ZodString;
2293
+ outputIds: z.ZodArray<z.ZodNumber>;
2294
+ outputText: z.ZodString;
2295
+ reachedTokenLimit: z.ZodBoolean;
2296
+ forwardTokenWork: z.ZodNumber;
2297
+ }, z.core.$strict>>;
2298
+ }, z.core.$strict>>;
2299
+ finalEvaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2300
+ panelId: z.ZodString;
2301
+ candidateHash: z.ZodString;
2302
+ sampling: z.ZodLiteral<"greedy_v1">;
2303
+ seed: z.ZodNumber;
2304
+ rows: z.ZodArray<z.ZodObject<{
2305
+ id: z.ZodString;
2306
+ inputHash: z.ZodString;
2307
+ outputIds: z.ZodArray<z.ZodNumber>;
2308
+ outputText: z.ZodString;
2309
+ reachedTokenLimit: z.ZodBoolean;
2310
+ forwardTokenWork: z.ZodNumber;
2311
+ }, z.core.$strict>>;
2312
+ role: z.ZodLiteral<"frozen">;
2313
+ source: z.ZodObject<{
2314
+ id: z.ZodString;
2315
+ contentHash: z.ZodString;
2316
+ revision: z.ZodNumber;
2317
+ }, z.core.$strict>;
2318
+ baseline: z.ZodObject<{
2319
+ candidateHash: z.ZodString;
2320
+ rows: z.ZodArray<z.ZodObject<{
2321
+ id: z.ZodString;
2322
+ inputHash: z.ZodString;
2323
+ outputIds: z.ZodArray<z.ZodNumber>;
2324
+ outputText: z.ZodString;
2325
+ reachedTokenLimit: z.ZodBoolean;
2326
+ forwardTokenWork: z.ZodNumber;
2327
+ }, z.core.$strict>>;
2328
+ }, z.core.$strict>;
2329
+ }, z.core.$strict>>>;
2330
+ usage: z.ZodObject<{
2331
+ commands: z.ZodNumber;
2332
+ candidates: z.ZodNumber;
2333
+ arithmeticWork: z.ZodNumber;
2334
+ forwardTokenWork: z.ZodNumber;
2335
+ }, z.core.$strict>;
2336
+ contentHash: z.ZodString;
2337
+ }, z.core.$strict>>;
2338
+ contentHash: z.ZodString;
2339
+ }, z.core.$strict>>;
2340
+ nextAfterRevision: z.ZodNullable<z.ZodNumber>;
2341
+ contentHash: z.ZodString;
2342
+ }, z.core.$strict>;
2343
+ export declare function parseAndVerifyWeightSpaceCommandPage(raw: unknown, expected: {
2344
+ teamId: string;
2345
+ sessionId: string;
2346
+ query: z.infer<typeof WeightSpaceCommandListQuerySchema>;
2347
+ }): Promise<{
2348
+ schemaVersion: "openpond.weightSpaceCommandPage.v1";
2349
+ teamId: string;
2350
+ ownerUserId: string;
2351
+ sessionId: string;
2352
+ query: {
2353
+ afterRevision: number;
2354
+ limit: number;
2355
+ };
2356
+ items: {
2357
+ schemaVersion: "openpond.weightSpaceCommandReceipt.v1";
2358
+ teamId: string;
2359
+ ownerUserId: string;
2360
+ command: {
2361
+ teamId: string;
2362
+ sessionId: string;
2363
+ operationId: string;
2364
+ expectedRevision: number;
2365
+ candidateHash: string;
2366
+ action: "catalog";
2367
+ offset: number;
2368
+ limit: number;
2369
+ } | {
2370
+ layer: number;
2371
+ columns: number[];
2372
+ teamId: string;
2373
+ sessionId: string;
2374
+ operationId: string;
2375
+ expectedRevision: number;
2376
+ candidateHash: string;
2377
+ action: "inspect";
2378
+ } | {
2379
+ teamId: string;
2380
+ sessionId: string;
2381
+ operationId: string;
2382
+ expectedRevision: number;
2383
+ candidateHash: string;
2384
+ action: "program";
2385
+ program: {
2386
+ instructions: ({
2387
+ op: "read_tensor";
2388
+ out: string;
2389
+ name: string;
2390
+ source: "base" | "candidate";
2391
+ ranges: {
2392
+ start: number;
2393
+ stop: number;
2394
+ }[];
2395
+ } | {
2396
+ layer: number;
2397
+ columns: number[];
2398
+ op: "read";
2399
+ out: string;
2400
+ source: "base" | "candidate";
2401
+ } | {
2402
+ op: "literal";
2403
+ out: string;
2404
+ shape: number[];
2405
+ values: number[];
2406
+ } | {
2407
+ op: "scale";
2408
+ out: string;
2409
+ input: string;
2410
+ factor: number;
2411
+ } | {
2412
+ op: "add" | "matmul" | "subtract";
2413
+ out: string;
2414
+ left: string;
2415
+ right: string;
2416
+ } | {
2417
+ op: "mean_columns" | "normalize_columns" | "singular_vectors" | "transpose";
2418
+ out: string;
2419
+ input: string;
2420
+ } | {
2421
+ op: "slice";
2422
+ out: string;
2423
+ input: string;
2424
+ axis: number;
2425
+ start: number;
2426
+ stop: number;
2427
+ } | {
2428
+ layer: number;
2429
+ columns: number[];
2430
+ op: "write";
2431
+ input: string;
2432
+ })[];
2433
+ returns: string[];
2434
+ };
2435
+ hypothesis: string;
2436
+ } | {
2437
+ teamId: string;
2438
+ sessionId: string;
2439
+ operationId: string;
2440
+ expectedRevision: number;
2441
+ candidateHash: string;
2442
+ action: "code";
2443
+ code: string;
2444
+ hypothesis: string;
2445
+ } | {
2446
+ teamId: string;
2447
+ sessionId: string;
2448
+ operationId: string;
2449
+ expectedRevision: number;
2450
+ candidateHash: string;
2451
+ action: "evaluate";
2452
+ panelId: string;
2453
+ } | {
2454
+ teamId: string;
2455
+ sessionId: string;
2456
+ operationId: string;
2457
+ expectedRevision: number;
2458
+ candidateHash: string;
2459
+ action: "select";
2460
+ targetCandidateHash: string;
2461
+ } | {
2462
+ teamId: string;
2463
+ sessionId: string;
2464
+ operationId: string;
2465
+ expectedRevision: number;
2466
+ candidateHash: string;
2467
+ action: "finalize";
2468
+ };
2469
+ requestHash: string;
2470
+ state: "completed" | "queued";
2471
+ result: {
2472
+ schemaVersion: "openpond.weightSpaceCommandResult.v1";
2473
+ sessionId: string;
2474
+ operationId: string;
2475
+ requestHash: string;
2476
+ revision: number;
2477
+ parentCandidateHash: string;
2478
+ candidateHash: string;
2479
+ changedColumns: {
2480
+ layer: number;
2481
+ columns: number[];
2482
+ }[];
2483
+ status: "rejected" | "succeeded";
2484
+ code: string | null;
2485
+ catalog: {
2486
+ items: {
2487
+ name: string;
2488
+ shape: number[];
2489
+ dtype: "BF16";
2490
+ editable: boolean;
2491
+ }[];
2492
+ nextOffset: number | null;
2493
+ } | null;
2494
+ tensors: Record<string, {
2495
+ shape: number[];
2496
+ minimum: number;
2497
+ maximum: number;
2498
+ mean: number;
2499
+ norm: number;
2500
+ values: number[];
2501
+ truncated: boolean;
2502
+ }>;
2503
+ evaluation: {
2504
+ panelId: string;
2505
+ role: "development" | "preservation";
2506
+ candidateHash: string;
2507
+ sampling: "greedy_v1";
2508
+ seed: number;
2509
+ rows: {
2510
+ id: string;
2511
+ inputHash: string;
2512
+ outputIds: number[];
2513
+ outputText: string;
2514
+ reachedTokenLimit: boolean;
2515
+ forwardTokenWork: number;
2516
+ }[];
2517
+ } | null;
2518
+ finalEvaluation?: {
2519
+ panelId: string;
2520
+ candidateHash: string;
2521
+ sampling: "greedy_v1";
2522
+ seed: number;
2523
+ rows: {
2524
+ id: string;
2525
+ inputHash: string;
2526
+ outputIds: number[];
2527
+ outputText: string;
2528
+ reachedTokenLimit: boolean;
2529
+ forwardTokenWork: number;
2530
+ }[];
2531
+ role: "frozen";
2532
+ source: {
2533
+ id: string;
2534
+ contentHash: string;
2535
+ revision: number;
2536
+ };
2537
+ baseline: {
2538
+ candidateHash: string;
2539
+ rows: {
2540
+ id: string;
2541
+ inputHash: string;
2542
+ outputIds: number[];
2543
+ outputText: string;
2544
+ reachedTokenLimit: boolean;
2545
+ forwardTokenWork: number;
2546
+ }[];
2547
+ };
2548
+ } | null | undefined;
2549
+ usage: {
2550
+ commands: number;
2551
+ candidates: number;
2552
+ arithmeticWork: number;
2553
+ forwardTokenWork: number;
2554
+ };
2555
+ contentHash: string;
2556
+ } | null;
2557
+ contentHash: string;
2558
+ }[];
2559
+ nextAfterRevision: number | null;
2560
+ contentHash: string;
2561
+ }>;
2562
+ export declare function parseAndVerifyWeightSpaceCapability(raw: unknown, query: z.infer<typeof ModelModificationCapabilitiesQuerySchema>, actorId?: string): Promise<{
2563
+ schemaVersion: "openpond.weightSpaceCapability.v1";
2564
+ teamId: string;
2565
+ actorId: string;
2566
+ query: {
2567
+ teamId: string;
2568
+ modelId: string;
2569
+ source: "builtin" | "local" | "managed";
2570
+ revision?: string | undefined;
2571
+ tokenizerRevision?: string | undefined;
2572
+ chatTemplateHash?: string | undefined;
2573
+ modelAssetId?: string | undefined;
2574
+ };
2575
+ requestHash: string;
2576
+ checkedAt: string;
2577
+ expiresAt: string;
2578
+ validationLevel: "gpu_qualified" | "source_validated" | null;
2579
+ execution: {
2580
+ state: "unavailable";
2581
+ code: "model_not_supported" | "runtime_not_qualified";
2582
+ reason: string;
2583
+ } | {
2584
+ state: "ready";
2585
+ model: {
2586
+ schemaVersion: "openpond.neuronSteeringModel.v1";
2587
+ modelId: string;
2588
+ revision: string;
2589
+ configHash: string;
2590
+ weightsHash: string;
2591
+ tokenizerHash: string;
2592
+ weightIdentity: "torch_state_dict_sha256_v1";
2593
+ architecture: "dense_decoder";
2594
+ dtype: "bfloat16" | "float16" | "float32";
2595
+ quantization: "none";
2596
+ adapter: null;
2597
+ hiddenSize: number;
2598
+ intermediateSizes: number[];
2599
+ };
2600
+ runtime: {
2601
+ id: string;
2602
+ releaseHash: string;
2603
+ imageDigest: string;
2604
+ requestSchema: "openpond.weightSpaceRequest.v1";
2605
+ bootstrapClock?: {
2606
+ schemaVersion: "openpond.weightSpaceQualifiedBootstrapClock.v1";
2607
+ method: "weight_space_programming";
2608
+ validationLevel: "gpu_qualified";
2609
+ bootstrapSeconds: 900;
2610
+ maximumWorkSeconds: number;
2611
+ workClock: "native_command_issued";
2612
+ cleanupSeconds: 120;
2613
+ modelHash: string;
2614
+ runtimeTemplateHash: string;
2615
+ qualification: {
2616
+ id: string;
2617
+ contentHash: string;
2618
+ };
2619
+ source: {
2620
+ imageDigest: string;
2621
+ releaseHash: string;
2622
+ canonicalReleaseSha256: string;
2623
+ sourceTreeSha256: string;
2624
+ softwareInventorySha256: string;
2625
+ buildReceiptSha256: string;
2626
+ pythonSdkSha256: string;
2627
+ };
2628
+ contentHash: string;
2629
+ } | undefined;
2630
+ evidence: {
2631
+ id: string;
2632
+ contentHash: string;
2633
+ };
2634
+ };
2635
+ limits: {
2636
+ maximumDurationSeconds: number;
2637
+ maximumIdleSeconds: number;
2638
+ maximumCommands: number;
2639
+ maximumCandidates: number;
2640
+ maximumPatchColumns: number;
2641
+ maximumTensorElements: number;
2642
+ maximumReturnedValues: number;
2643
+ maximumArithmeticWork: number;
2644
+ maximumForwardTokenWork: number;
2645
+ maximumCheckpointBytes: number;
2646
+ };
2647
+ };
2648
+ contentHash: string;
2649
+ }>;
2650
+ export declare function parseAndVerifyWeightSpacePrepare(raw: unknown): Promise<{
2651
+ teamId: string;
2652
+ operationId: string;
2653
+ projectId: string | null;
2654
+ name: string;
2655
+ method: "weight_space_programming";
2656
+ query: {
2657
+ teamId: string;
2658
+ modelId: string;
2659
+ source: "builtin" | "local" | "managed";
2660
+ revision?: string | undefined;
2661
+ tokenizerRevision?: string | undefined;
2662
+ chatTemplateHash?: string | undefined;
2663
+ modelAssetId?: string | undefined;
2664
+ };
2665
+ request: {
2666
+ schemaVersion: "openpond.weightSpaceRequest.v1";
2667
+ model: {
2668
+ schemaVersion: "openpond.neuronSteeringModel.v1";
2669
+ modelId: string;
2670
+ revision: string;
2671
+ configHash: string;
2672
+ weightsHash: string;
2673
+ tokenizerHash: string;
2674
+ weightIdentity: "torch_state_dict_sha256_v1";
2675
+ architecture: "dense_decoder";
2676
+ dtype: "bfloat16" | "float16" | "float32";
2677
+ quantization: "none";
2678
+ adapter: null;
2679
+ hiddenSize: number;
2680
+ intermediateSizes: number[];
2681
+ };
2682
+ teacher: {
2683
+ controller: "local_agent";
2684
+ providerId: string;
2685
+ modelId: string;
2686
+ sessionId: string;
2687
+ };
2688
+ objective: string;
2689
+ panels: {
2690
+ id: string;
2691
+ source: {
2692
+ id: string;
2693
+ contentHash: string;
2694
+ revision: number;
2695
+ } | null;
2696
+ role: "development" | "preservation";
2697
+ prompts: {
2698
+ id: string;
2699
+ text: string;
2700
+ system?: string | undefined;
2701
+ }[];
2702
+ }[];
2703
+ frozenEvaluation: {
2704
+ id: string;
2705
+ contentHash: string;
2706
+ revision: number;
2707
+ } | null;
2708
+ generation: {
2709
+ maxOutputTokens: number;
2710
+ seed: number;
2711
+ sampling: "greedy_v1";
2712
+ };
2713
+ limits: {
2714
+ maximumDurationSeconds: number;
2715
+ maximumIdleSeconds: number;
2716
+ maximumCommands: number;
2717
+ maximumCandidates: number;
2718
+ maximumPatchColumns: number;
2719
+ maximumTensorElements: number;
2720
+ maximumReturnedValues: number;
2721
+ maximumArithmeticWork: number;
2722
+ maximumForwardTokenWork: number;
2723
+ maximumCheckpointBytes: number;
2724
+ };
2725
+ };
2726
+ maximumSpendUsd: string;
2727
+ sourceForm?: undefined;
2728
+ }>;
2729
+ export declare function parseAndVerifyWeightSpaceExecution(raw: unknown, expected: {
2730
+ teamId: string;
2731
+ id: string;
2732
+ ownerUserId?: string;
2733
+ }): Promise<{
2734
+ id: string;
2735
+ teamId: string;
2736
+ ownerUserId: string;
2737
+ projectId: string | null;
2738
+ name: string;
2739
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
2740
+ revision: number;
2741
+ sourceContentHash: string;
2742
+ plan: {
2743
+ contentHash: string;
2744
+ inputHash: string;
2745
+ runtimeHash: string;
2746
+ maximumSpendUsd: string | null;
2747
+ computePrice?: {
2748
+ schemaVersion: "openpond.modificationPrice.v1";
2749
+ appliedPrice: {
2750
+ schemaVersion: "openpond.computeAppliedPrice.v1";
2751
+ version: string;
2752
+ profileHash: string;
2753
+ currency: "USD";
2754
+ unit: "resource_hour";
2755
+ hourlyUsd: string;
2756
+ service: "model_modification";
2757
+ };
2758
+ billingBoundary: "active_allocation_until_verified_cleanup";
2759
+ startupBillable: true;
2760
+ postCompletionIdleBillable: false;
2761
+ minimumBillableSeconds: 0;
2762
+ warmReuseSeconds: 300;
2763
+ } | {
2764
+ appliedPrice: {
2765
+ schemaVersion: "openpond.computeAppliedPrice.v1";
2766
+ version: string;
2767
+ profileHash: string;
2768
+ currency: "USD";
2769
+ unit: "resource_hour";
2770
+ hourlyUsd: string;
2771
+ service: "model_modification";
2772
+ };
2773
+ billingBoundary: "active_allocation_until_verified_cleanup";
2774
+ startupBillable: true;
2775
+ postCompletionIdleBillable: false;
2776
+ minimumBillableSeconds: 0;
2777
+ schemaVersion: "openpond.modificationPrice.v2";
2778
+ warmReuseSeconds: 0;
2779
+ } | undefined;
2780
+ createdAt: string;
2781
+ expiresAt: string;
2782
+ };
2783
+ updatedAt: string;
2784
+ method: "weight_space_programming";
2785
+ session: {
2786
+ revision: number;
2787
+ candidateHash: string;
2788
+ historyHash: string;
2789
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
2790
+ pendingOperationId: string | null;
2791
+ lastActivityAt: string;
2792
+ finalization: {
2793
+ operationId: string;
2794
+ resultHash: string;
2795
+ historyHashBefore: string;
2796
+ status: "rejected" | "succeeded";
2797
+ } | null;
2798
+ usage: {
2799
+ commands: number;
2800
+ candidates: number;
2801
+ arithmeticWork: number;
2802
+ forwardTokenWork: number;
2803
+ };
2804
+ } | null;
2805
+ schemaVersion: "openpond.weightSpaceExecution.v1";
2806
+ request: {
2807
+ schemaVersion: "openpond.weightSpaceRequest.v1";
2808
+ model: {
2809
+ schemaVersion: "openpond.neuronSteeringModel.v1";
2810
+ modelId: string;
2811
+ revision: string;
2812
+ configHash: string;
2813
+ weightsHash: string;
2814
+ tokenizerHash: string;
2815
+ weightIdentity: "torch_state_dict_sha256_v1";
2816
+ architecture: "dense_decoder";
2817
+ dtype: "bfloat16" | "float16" | "float32";
2818
+ quantization: "none";
2819
+ adapter: null;
2820
+ hiddenSize: number;
2821
+ intermediateSizes: number[];
2822
+ };
2823
+ teacher: {
2824
+ controller: "local_agent";
2825
+ providerId: string;
2826
+ modelId: string;
2827
+ sessionId: string;
2828
+ };
2829
+ objective: string;
2830
+ panels: {
2831
+ id: string;
2832
+ source: {
2833
+ id: string;
2834
+ contentHash: string;
2835
+ revision: number;
2836
+ } | null;
2837
+ role: "development" | "preservation";
2838
+ prompts: {
2839
+ id: string;
2840
+ text: string;
2841
+ system?: string | undefined;
2842
+ }[];
2843
+ }[];
2844
+ frozenEvaluation: {
2845
+ id: string;
2846
+ contentHash: string;
2847
+ revision: number;
2848
+ } | null;
2849
+ generation: {
2850
+ maxOutputTokens: number;
2851
+ seed: number;
2852
+ sampling: "greedy_v1";
2853
+ };
2854
+ limits: {
2855
+ maximumDurationSeconds: number;
2856
+ maximumIdleSeconds: number;
2857
+ maximumCommands: number;
2858
+ maximumCandidates: number;
2859
+ maximumPatchColumns: number;
2860
+ maximumTensorElements: number;
2861
+ maximumReturnedValues: number;
2862
+ maximumArithmeticWork: number;
2863
+ maximumForwardTokenWork: number;
2864
+ maximumCheckpointBytes: number;
2865
+ };
2866
+ };
2867
+ result: {
2868
+ schemaVersion: "openpond.weightSpaceResult.v1";
2869
+ inputHash: string;
2870
+ runtimeHash: string;
2871
+ candidateHash: string;
2872
+ historyHash: string;
2873
+ artifact: {
2874
+ id: string;
2875
+ contentHash: string;
2876
+ manifest: {
2877
+ schemaVersion: "openpond.weightSpaceArtifact.v1";
2878
+ method: "weight_space_programming";
2879
+ representation: "exact_bf16_mlp_column_replacements_v1";
2880
+ model: {
2881
+ schemaVersion: "openpond.neuronSteeringModel.v1";
2882
+ modelId: string;
2883
+ revision: string;
2884
+ configHash: string;
2885
+ weightsHash: string;
2886
+ tokenizerHash: string;
2887
+ weightIdentity: "torch_state_dict_sha256_v1";
2888
+ architecture: "dense_decoder";
2889
+ dtype: "bfloat16" | "float16" | "float32";
2890
+ quantization: "none";
2891
+ adapter: null;
2892
+ hiddenSize: number;
2893
+ intermediateSizes: number[];
2894
+ };
2895
+ requestHash: string;
2896
+ runtimeHash: string;
2897
+ candidateHash: string;
2898
+ teacher: {
2899
+ controller: "local_agent";
2900
+ providerId: string;
2901
+ modelId: string;
2902
+ sessionId: string;
2903
+ };
2904
+ historyHash: string;
2905
+ columns: {
2906
+ layer: number;
2907
+ columns: number[];
2908
+ }[];
2909
+ columnHashes: string[];
2910
+ payload: {
2911
+ path: "patch.safetensors";
2912
+ sha256: string;
2913
+ sizeBytes: number;
2914
+ tensors: {
2915
+ name: string;
2916
+ dtype: "BF16" | "I64";
2917
+ shape: number[];
2918
+ }[];
2919
+ };
2920
+ reload: {
2921
+ effectiveColumnsHash: string;
2922
+ reloadedColumnsHash: string;
2923
+ untouchedWeightsHashBefore: string;
2924
+ untouchedWeightsHashAfter: string;
2925
+ equivalent: true;
2926
+ };
2927
+ contentHash: string;
2928
+ };
2929
+ files: {
2930
+ path: "manifest.json" | "patch.safetensors";
2931
+ artifactId: string;
2932
+ sha256: string;
2933
+ sizeBytes: number;
2934
+ }[];
2935
+ };
2936
+ commands: number;
2937
+ candidates: number;
2938
+ forwardTokenWork: number;
2939
+ durationMs: number;
2940
+ contentHash: string;
2941
+ } | null;
2942
+ resultRecordedAt: string | null;
2943
+ contentHash: string;
2944
+ }>;
2945
+ export declare function parseAndVerifyWeightSpaceExecutionReceipt(raw: unknown, command: WeightSpacePrepare | z.infer<typeof ManagedModificationStartSchema> | z.infer<typeof ManagedModificationCancelSchema>): Promise<{
2946
+ schemaVersion: "openpond.weightSpaceExecutionReceipt.v1";
2947
+ operationId: string;
2948
+ requestHash: string;
2949
+ execution: {
2950
+ id: string;
2951
+ teamId: string;
2952
+ ownerUserId: string;
2953
+ projectId: string | null;
2954
+ name: string;
2955
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
2956
+ revision: number;
2957
+ sourceContentHash: string;
2958
+ plan: {
2959
+ contentHash: string;
2960
+ inputHash: string;
2961
+ runtimeHash: string;
2962
+ maximumSpendUsd: string | null;
2963
+ computePrice?: {
2964
+ schemaVersion: "openpond.modificationPrice.v1";
2965
+ appliedPrice: {
2966
+ schemaVersion: "openpond.computeAppliedPrice.v1";
2967
+ version: string;
2968
+ profileHash: string;
2969
+ currency: "USD";
2970
+ unit: "resource_hour";
2971
+ hourlyUsd: string;
2972
+ service: "model_modification";
2973
+ };
2974
+ billingBoundary: "active_allocation_until_verified_cleanup";
2975
+ startupBillable: true;
2976
+ postCompletionIdleBillable: false;
2977
+ minimumBillableSeconds: 0;
2978
+ warmReuseSeconds: 300;
2979
+ } | {
2980
+ appliedPrice: {
2981
+ schemaVersion: "openpond.computeAppliedPrice.v1";
2982
+ version: string;
2983
+ profileHash: string;
2984
+ currency: "USD";
2985
+ unit: "resource_hour";
2986
+ hourlyUsd: string;
2987
+ service: "model_modification";
2988
+ };
2989
+ billingBoundary: "active_allocation_until_verified_cleanup";
2990
+ startupBillable: true;
2991
+ postCompletionIdleBillable: false;
2992
+ minimumBillableSeconds: 0;
2993
+ schemaVersion: "openpond.modificationPrice.v2";
2994
+ warmReuseSeconds: 0;
2995
+ } | undefined;
2996
+ createdAt: string;
2997
+ expiresAt: string;
2998
+ };
2999
+ updatedAt: string;
3000
+ method: "weight_space_programming";
3001
+ session: {
3002
+ revision: number;
3003
+ candidateHash: string;
3004
+ historyHash: string;
3005
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3006
+ pendingOperationId: string | null;
3007
+ lastActivityAt: string;
3008
+ finalization: {
3009
+ operationId: string;
3010
+ resultHash: string;
3011
+ historyHashBefore: string;
3012
+ status: "rejected" | "succeeded";
3013
+ } | null;
3014
+ usage: {
3015
+ commands: number;
3016
+ candidates: number;
3017
+ arithmeticWork: number;
3018
+ forwardTokenWork: number;
3019
+ };
3020
+ } | null;
3021
+ };
3022
+ contentHash: string;
3023
+ }>;
3024
+ export declare function parseAndVerifyWeightSpaceCommandReceipt(raw: unknown, command: WeightSpaceCommand): Promise<{
3025
+ schemaVersion: "openpond.weightSpaceCommandReceipt.v1";
3026
+ teamId: string;
3027
+ ownerUserId: string;
3028
+ command: {
3029
+ teamId: string;
3030
+ sessionId: string;
3031
+ operationId: string;
3032
+ expectedRevision: number;
3033
+ candidateHash: string;
3034
+ action: "catalog";
3035
+ offset: number;
3036
+ limit: number;
3037
+ } | {
3038
+ layer: number;
3039
+ columns: number[];
3040
+ teamId: string;
3041
+ sessionId: string;
3042
+ operationId: string;
3043
+ expectedRevision: number;
3044
+ candidateHash: string;
3045
+ action: "inspect";
3046
+ } | {
3047
+ teamId: string;
3048
+ sessionId: string;
3049
+ operationId: string;
3050
+ expectedRevision: number;
3051
+ candidateHash: string;
3052
+ action: "program";
3053
+ program: {
3054
+ instructions: ({
3055
+ op: "read_tensor";
3056
+ out: string;
3057
+ name: string;
3058
+ source: "base" | "candidate";
3059
+ ranges: {
3060
+ start: number;
3061
+ stop: number;
3062
+ }[];
3063
+ } | {
3064
+ layer: number;
3065
+ columns: number[];
3066
+ op: "read";
3067
+ out: string;
3068
+ source: "base" | "candidate";
3069
+ } | {
3070
+ op: "literal";
3071
+ out: string;
3072
+ shape: number[];
3073
+ values: number[];
3074
+ } | {
3075
+ op: "scale";
3076
+ out: string;
3077
+ input: string;
3078
+ factor: number;
3079
+ } | {
3080
+ op: "add" | "matmul" | "subtract";
3081
+ out: string;
3082
+ left: string;
3083
+ right: string;
3084
+ } | {
3085
+ op: "mean_columns" | "normalize_columns" | "singular_vectors" | "transpose";
3086
+ out: string;
3087
+ input: string;
3088
+ } | {
3089
+ op: "slice";
3090
+ out: string;
3091
+ input: string;
3092
+ axis: number;
3093
+ start: number;
3094
+ stop: number;
3095
+ } | {
3096
+ layer: number;
3097
+ columns: number[];
3098
+ op: "write";
3099
+ input: string;
3100
+ })[];
3101
+ returns: string[];
3102
+ };
3103
+ hypothesis: string;
3104
+ } | {
3105
+ teamId: string;
3106
+ sessionId: string;
3107
+ operationId: string;
3108
+ expectedRevision: number;
3109
+ candidateHash: string;
3110
+ action: "code";
3111
+ code: string;
3112
+ hypothesis: string;
3113
+ } | {
3114
+ teamId: string;
3115
+ sessionId: string;
3116
+ operationId: string;
3117
+ expectedRevision: number;
3118
+ candidateHash: string;
3119
+ action: "evaluate";
3120
+ panelId: string;
3121
+ } | {
3122
+ teamId: string;
3123
+ sessionId: string;
3124
+ operationId: string;
3125
+ expectedRevision: number;
3126
+ candidateHash: string;
3127
+ action: "select";
3128
+ targetCandidateHash: string;
3129
+ } | {
3130
+ teamId: string;
3131
+ sessionId: string;
3132
+ operationId: string;
3133
+ expectedRevision: number;
3134
+ candidateHash: string;
3135
+ action: "finalize";
3136
+ };
3137
+ requestHash: string;
3138
+ state: "completed" | "queued";
3139
+ result: {
3140
+ schemaVersion: "openpond.weightSpaceCommandResult.v1";
3141
+ sessionId: string;
3142
+ operationId: string;
3143
+ requestHash: string;
3144
+ revision: number;
3145
+ parentCandidateHash: string;
3146
+ candidateHash: string;
3147
+ changedColumns: {
3148
+ layer: number;
3149
+ columns: number[];
3150
+ }[];
3151
+ status: "rejected" | "succeeded";
3152
+ code: string | null;
3153
+ catalog: {
3154
+ items: {
3155
+ name: string;
3156
+ shape: number[];
3157
+ dtype: "BF16";
3158
+ editable: boolean;
3159
+ }[];
3160
+ nextOffset: number | null;
3161
+ } | null;
3162
+ tensors: Record<string, {
3163
+ shape: number[];
3164
+ minimum: number;
3165
+ maximum: number;
3166
+ mean: number;
3167
+ norm: number;
3168
+ values: number[];
3169
+ truncated: boolean;
3170
+ }>;
3171
+ evaluation: {
3172
+ panelId: string;
3173
+ role: "development" | "preservation";
3174
+ candidateHash: string;
3175
+ sampling: "greedy_v1";
3176
+ seed: number;
3177
+ rows: {
3178
+ id: string;
3179
+ inputHash: string;
3180
+ outputIds: number[];
3181
+ outputText: string;
3182
+ reachedTokenLimit: boolean;
3183
+ forwardTokenWork: number;
3184
+ }[];
3185
+ } | null;
3186
+ finalEvaluation?: {
3187
+ panelId: string;
3188
+ candidateHash: string;
3189
+ sampling: "greedy_v1";
3190
+ seed: number;
3191
+ rows: {
3192
+ id: string;
3193
+ inputHash: string;
3194
+ outputIds: number[];
3195
+ outputText: string;
3196
+ reachedTokenLimit: boolean;
3197
+ forwardTokenWork: number;
3198
+ }[];
3199
+ role: "frozen";
3200
+ source: {
3201
+ id: string;
3202
+ contentHash: string;
3203
+ revision: number;
3204
+ };
3205
+ baseline: {
3206
+ candidateHash: string;
3207
+ rows: {
3208
+ id: string;
3209
+ inputHash: string;
3210
+ outputIds: number[];
3211
+ outputText: string;
3212
+ reachedTokenLimit: boolean;
3213
+ forwardTokenWork: number;
3214
+ }[];
3215
+ };
3216
+ } | null | undefined;
3217
+ usage: {
3218
+ commands: number;
3219
+ candidates: number;
3220
+ arithmeticWork: number;
3221
+ forwardTokenWork: number;
3222
+ };
3223
+ contentHash: string;
3224
+ } | null;
3225
+ contentHash: string;
3226
+ }>;
3227
+ export declare function parseAndVerifyWeightSpaceExecutionPage(raw: unknown, expected: {
3228
+ teamId: string;
3229
+ ownerUserId?: string;
3230
+ query: z.infer<typeof WeightSpaceExecutionListQuerySchema>;
3231
+ }): Promise<{
3232
+ schemaVersion: "openpond.weightSpaceExecutionPage.v1";
3233
+ teamId: string;
3234
+ ownerUserId: string;
3235
+ query: {
3236
+ method: "weight_space_programming";
3237
+ projectId?: string | undefined;
3238
+ id?: string | undefined;
3239
+ phase?: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping" | undefined;
3240
+ cursor?: string | undefined;
3241
+ limit: number;
3242
+ };
3243
+ items: {
3244
+ id: string;
3245
+ teamId: string;
3246
+ ownerUserId: string;
3247
+ projectId: string | null;
3248
+ name: string;
3249
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3250
+ revision: number;
3251
+ sourceContentHash: string;
3252
+ plan: {
3253
+ contentHash: string;
3254
+ inputHash: string;
3255
+ runtimeHash: string;
3256
+ maximumSpendUsd: string | null;
3257
+ computePrice?: {
3258
+ schemaVersion: "openpond.modificationPrice.v1";
3259
+ appliedPrice: {
3260
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3261
+ version: string;
3262
+ profileHash: string;
3263
+ currency: "USD";
3264
+ unit: "resource_hour";
3265
+ hourlyUsd: string;
3266
+ service: "model_modification";
3267
+ };
3268
+ billingBoundary: "active_allocation_until_verified_cleanup";
3269
+ startupBillable: true;
3270
+ postCompletionIdleBillable: false;
3271
+ minimumBillableSeconds: 0;
3272
+ warmReuseSeconds: 300;
3273
+ } | {
3274
+ appliedPrice: {
3275
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3276
+ version: string;
3277
+ profileHash: string;
3278
+ currency: "USD";
3279
+ unit: "resource_hour";
3280
+ hourlyUsd: string;
3281
+ service: "model_modification";
3282
+ };
3283
+ billingBoundary: "active_allocation_until_verified_cleanup";
3284
+ startupBillable: true;
3285
+ postCompletionIdleBillable: false;
3286
+ minimumBillableSeconds: 0;
3287
+ schemaVersion: "openpond.modificationPrice.v2";
3288
+ warmReuseSeconds: 0;
3289
+ } | undefined;
3290
+ createdAt: string;
3291
+ expiresAt: string;
3292
+ };
3293
+ updatedAt: string;
3294
+ method: "weight_space_programming";
3295
+ session: {
3296
+ revision: number;
3297
+ candidateHash: string;
3298
+ historyHash: string;
3299
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3300
+ pendingOperationId: string | null;
3301
+ lastActivityAt: string;
3302
+ finalization: {
3303
+ operationId: string;
3304
+ resultHash: string;
3305
+ historyHashBefore: string;
3306
+ status: "rejected" | "succeeded";
3307
+ } | null;
3308
+ usage: {
3309
+ commands: number;
3310
+ candidates: number;
3311
+ arithmeticWork: number;
3312
+ forwardTokenWork: number;
3313
+ };
3314
+ } | null;
3315
+ model: {
3316
+ schemaVersion: "openpond.neuronSteeringModel.v1";
3317
+ modelId: string;
3318
+ revision: string;
3319
+ configHash: string;
3320
+ weightsHash: string;
3321
+ tokenizerHash: string;
3322
+ weightIdentity: "torch_state_dict_sha256_v1";
3323
+ architecture: "dense_decoder";
3324
+ dtype: "bfloat16" | "float16" | "float32";
3325
+ quantization: "none";
3326
+ adapter: null;
3327
+ hiddenSize: number;
3328
+ intermediateSizes: number[];
3329
+ };
3330
+ }[];
3331
+ nextCursor: string | null;
3332
+ contentHash: string;
3333
+ }>;
3334
+ export declare function createWeightSpaceClient(request: (path: string, init?: RequestInit) => Promise<unknown>): {
3335
+ weightSpaceCapability(query: z.infer<typeof ModelModificationCapabilitiesQuerySchema>): Promise<{
3336
+ schemaVersion: "openpond.weightSpaceCapability.v1";
3337
+ teamId: string;
3338
+ actorId: string;
3339
+ query: {
3340
+ teamId: string;
3341
+ modelId: string;
3342
+ source: "builtin" | "local" | "managed";
3343
+ revision?: string | undefined;
3344
+ tokenizerRevision?: string | undefined;
3345
+ chatTemplateHash?: string | undefined;
3346
+ modelAssetId?: string | undefined;
3347
+ };
3348
+ requestHash: string;
3349
+ checkedAt: string;
3350
+ expiresAt: string;
3351
+ validationLevel: "gpu_qualified" | "source_validated" | null;
3352
+ execution: {
3353
+ state: "unavailable";
3354
+ code: "model_not_supported" | "runtime_not_qualified";
3355
+ reason: string;
3356
+ } | {
3357
+ state: "ready";
3358
+ model: {
3359
+ schemaVersion: "openpond.neuronSteeringModel.v1";
3360
+ modelId: string;
3361
+ revision: string;
3362
+ configHash: string;
3363
+ weightsHash: string;
3364
+ tokenizerHash: string;
3365
+ weightIdentity: "torch_state_dict_sha256_v1";
3366
+ architecture: "dense_decoder";
3367
+ dtype: "bfloat16" | "float16" | "float32";
3368
+ quantization: "none";
3369
+ adapter: null;
3370
+ hiddenSize: number;
3371
+ intermediateSizes: number[];
3372
+ };
3373
+ runtime: {
3374
+ id: string;
3375
+ releaseHash: string;
3376
+ imageDigest: string;
3377
+ requestSchema: "openpond.weightSpaceRequest.v1";
3378
+ bootstrapClock?: {
3379
+ schemaVersion: "openpond.weightSpaceQualifiedBootstrapClock.v1";
3380
+ method: "weight_space_programming";
3381
+ validationLevel: "gpu_qualified";
3382
+ bootstrapSeconds: 900;
3383
+ maximumWorkSeconds: number;
3384
+ workClock: "native_command_issued";
3385
+ cleanupSeconds: 120;
3386
+ modelHash: string;
3387
+ runtimeTemplateHash: string;
3388
+ qualification: {
3389
+ id: string;
3390
+ contentHash: string;
3391
+ };
3392
+ source: {
3393
+ imageDigest: string;
3394
+ releaseHash: string;
3395
+ canonicalReleaseSha256: string;
3396
+ sourceTreeSha256: string;
3397
+ softwareInventorySha256: string;
3398
+ buildReceiptSha256: string;
3399
+ pythonSdkSha256: string;
3400
+ };
3401
+ contentHash: string;
3402
+ } | undefined;
3403
+ evidence: {
3404
+ id: string;
3405
+ contentHash: string;
3406
+ };
3407
+ };
3408
+ limits: {
3409
+ maximumDurationSeconds: number;
3410
+ maximumIdleSeconds: number;
3411
+ maximumCommands: number;
3412
+ maximumCandidates: number;
3413
+ maximumPatchColumns: number;
3414
+ maximumTensorElements: number;
3415
+ maximumReturnedValues: number;
3416
+ maximumArithmeticWork: number;
3417
+ maximumForwardTokenWork: number;
3418
+ maximumCheckpointBytes: number;
3419
+ };
3420
+ };
3421
+ contentHash: string;
3422
+ }>;
3423
+ prepareWeightSpaceSession(raw: WeightSpacePrepare): Promise<{
3424
+ schemaVersion: "openpond.weightSpaceExecutionReceipt.v1";
3425
+ operationId: string;
3426
+ requestHash: string;
3427
+ execution: {
3428
+ id: string;
3429
+ teamId: string;
3430
+ ownerUserId: string;
3431
+ projectId: string | null;
3432
+ name: string;
3433
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3434
+ revision: number;
3435
+ sourceContentHash: string;
3436
+ plan: {
3437
+ contentHash: string;
3438
+ inputHash: string;
3439
+ runtimeHash: string;
3440
+ maximumSpendUsd: string | null;
3441
+ computePrice?: {
3442
+ schemaVersion: "openpond.modificationPrice.v1";
3443
+ appliedPrice: {
3444
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3445
+ version: string;
3446
+ profileHash: string;
3447
+ currency: "USD";
3448
+ unit: "resource_hour";
3449
+ hourlyUsd: string;
3450
+ service: "model_modification";
3451
+ };
3452
+ billingBoundary: "active_allocation_until_verified_cleanup";
3453
+ startupBillable: true;
3454
+ postCompletionIdleBillable: false;
3455
+ minimumBillableSeconds: 0;
3456
+ warmReuseSeconds: 300;
3457
+ } | {
3458
+ appliedPrice: {
3459
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3460
+ version: string;
3461
+ profileHash: string;
3462
+ currency: "USD";
3463
+ unit: "resource_hour";
3464
+ hourlyUsd: string;
3465
+ service: "model_modification";
3466
+ };
3467
+ billingBoundary: "active_allocation_until_verified_cleanup";
3468
+ startupBillable: true;
3469
+ postCompletionIdleBillable: false;
3470
+ minimumBillableSeconds: 0;
3471
+ schemaVersion: "openpond.modificationPrice.v2";
3472
+ warmReuseSeconds: 0;
3473
+ } | undefined;
3474
+ createdAt: string;
3475
+ expiresAt: string;
3476
+ };
3477
+ updatedAt: string;
3478
+ method: "weight_space_programming";
3479
+ session: {
3480
+ revision: number;
3481
+ candidateHash: string;
3482
+ historyHash: string;
3483
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3484
+ pendingOperationId: string | null;
3485
+ lastActivityAt: string;
3486
+ finalization: {
3487
+ operationId: string;
3488
+ resultHash: string;
3489
+ historyHashBefore: string;
3490
+ status: "rejected" | "succeeded";
3491
+ } | null;
3492
+ usage: {
3493
+ commands: number;
3494
+ candidates: number;
3495
+ arithmeticWork: number;
3496
+ forwardTokenWork: number;
3497
+ };
3498
+ } | null;
3499
+ };
3500
+ contentHash: string;
3501
+ }>;
3502
+ startWeightSpaceSession(raw: z.infer<typeof ManagedModificationStartSchema>): Promise<{
3503
+ schemaVersion: "openpond.weightSpaceExecutionReceipt.v1";
3504
+ operationId: string;
3505
+ requestHash: string;
3506
+ execution: {
3507
+ id: string;
3508
+ teamId: string;
3509
+ ownerUserId: string;
3510
+ projectId: string | null;
3511
+ name: string;
3512
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3513
+ revision: number;
3514
+ sourceContentHash: string;
3515
+ plan: {
3516
+ contentHash: string;
3517
+ inputHash: string;
3518
+ runtimeHash: string;
3519
+ maximumSpendUsd: string | null;
3520
+ computePrice?: {
3521
+ schemaVersion: "openpond.modificationPrice.v1";
3522
+ appliedPrice: {
3523
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3524
+ version: string;
3525
+ profileHash: string;
3526
+ currency: "USD";
3527
+ unit: "resource_hour";
3528
+ hourlyUsd: string;
3529
+ service: "model_modification";
3530
+ };
3531
+ billingBoundary: "active_allocation_until_verified_cleanup";
3532
+ startupBillable: true;
3533
+ postCompletionIdleBillable: false;
3534
+ minimumBillableSeconds: 0;
3535
+ warmReuseSeconds: 300;
3536
+ } | {
3537
+ appliedPrice: {
3538
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3539
+ version: string;
3540
+ profileHash: string;
3541
+ currency: "USD";
3542
+ unit: "resource_hour";
3543
+ hourlyUsd: string;
3544
+ service: "model_modification";
3545
+ };
3546
+ billingBoundary: "active_allocation_until_verified_cleanup";
3547
+ startupBillable: true;
3548
+ postCompletionIdleBillable: false;
3549
+ minimumBillableSeconds: 0;
3550
+ schemaVersion: "openpond.modificationPrice.v2";
3551
+ warmReuseSeconds: 0;
3552
+ } | undefined;
3553
+ createdAt: string;
3554
+ expiresAt: string;
3555
+ };
3556
+ updatedAt: string;
3557
+ method: "weight_space_programming";
3558
+ session: {
3559
+ revision: number;
3560
+ candidateHash: string;
3561
+ historyHash: string;
3562
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3563
+ pendingOperationId: string | null;
3564
+ lastActivityAt: string;
3565
+ finalization: {
3566
+ operationId: string;
3567
+ resultHash: string;
3568
+ historyHashBefore: string;
3569
+ status: "rejected" | "succeeded";
3570
+ } | null;
3571
+ usage: {
3572
+ commands: number;
3573
+ candidates: number;
3574
+ arithmeticWork: number;
3575
+ forwardTokenWork: number;
3576
+ };
3577
+ } | null;
3578
+ };
3579
+ contentHash: string;
3580
+ }>;
3581
+ cancelWeightSpaceSession(raw: z.infer<typeof ManagedModificationCancelSchema>): Promise<{
3582
+ schemaVersion: "openpond.weightSpaceExecutionReceipt.v1";
3583
+ operationId: string;
3584
+ requestHash: string;
3585
+ execution: {
3586
+ id: string;
3587
+ teamId: string;
3588
+ ownerUserId: string;
3589
+ projectId: string | null;
3590
+ name: string;
3591
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3592
+ revision: number;
3593
+ sourceContentHash: string;
3594
+ plan: {
3595
+ contentHash: string;
3596
+ inputHash: string;
3597
+ runtimeHash: string;
3598
+ maximumSpendUsd: string | null;
3599
+ computePrice?: {
3600
+ schemaVersion: "openpond.modificationPrice.v1";
3601
+ appliedPrice: {
3602
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3603
+ version: string;
3604
+ profileHash: string;
3605
+ currency: "USD";
3606
+ unit: "resource_hour";
3607
+ hourlyUsd: string;
3608
+ service: "model_modification";
3609
+ };
3610
+ billingBoundary: "active_allocation_until_verified_cleanup";
3611
+ startupBillable: true;
3612
+ postCompletionIdleBillable: false;
3613
+ minimumBillableSeconds: 0;
3614
+ warmReuseSeconds: 300;
3615
+ } | {
3616
+ appliedPrice: {
3617
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3618
+ version: string;
3619
+ profileHash: string;
3620
+ currency: "USD";
3621
+ unit: "resource_hour";
3622
+ hourlyUsd: string;
3623
+ service: "model_modification";
3624
+ };
3625
+ billingBoundary: "active_allocation_until_verified_cleanup";
3626
+ startupBillable: true;
3627
+ postCompletionIdleBillable: false;
3628
+ minimumBillableSeconds: 0;
3629
+ schemaVersion: "openpond.modificationPrice.v2";
3630
+ warmReuseSeconds: 0;
3631
+ } | undefined;
3632
+ createdAt: string;
3633
+ expiresAt: string;
3634
+ };
3635
+ updatedAt: string;
3636
+ method: "weight_space_programming";
3637
+ session: {
3638
+ revision: number;
3639
+ candidateHash: string;
3640
+ historyHash: string;
3641
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3642
+ pendingOperationId: string | null;
3643
+ lastActivityAt: string;
3644
+ finalization: {
3645
+ operationId: string;
3646
+ resultHash: string;
3647
+ historyHashBefore: string;
3648
+ status: "rejected" | "succeeded";
3649
+ } | null;
3650
+ usage: {
3651
+ commands: number;
3652
+ candidates: number;
3653
+ arithmeticWork: number;
3654
+ forwardTokenWork: number;
3655
+ };
3656
+ } | null;
3657
+ };
3658
+ contentHash: string;
3659
+ }>;
3660
+ getWeightSpaceSession(teamId: string, id: string, options?: {
3661
+ ownerUserId?: string;
3662
+ signal?: AbortSignal;
3663
+ }): Promise<{
3664
+ id: string;
3665
+ teamId: string;
3666
+ ownerUserId: string;
3667
+ projectId: string | null;
3668
+ name: string;
3669
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3670
+ revision: number;
3671
+ sourceContentHash: string;
3672
+ plan: {
3673
+ contentHash: string;
3674
+ inputHash: string;
3675
+ runtimeHash: string;
3676
+ maximumSpendUsd: string | null;
3677
+ computePrice?: {
3678
+ schemaVersion: "openpond.modificationPrice.v1";
3679
+ appliedPrice: {
3680
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3681
+ version: string;
3682
+ profileHash: string;
3683
+ currency: "USD";
3684
+ unit: "resource_hour";
3685
+ hourlyUsd: string;
3686
+ service: "model_modification";
3687
+ };
3688
+ billingBoundary: "active_allocation_until_verified_cleanup";
3689
+ startupBillable: true;
3690
+ postCompletionIdleBillable: false;
3691
+ minimumBillableSeconds: 0;
3692
+ warmReuseSeconds: 300;
3693
+ } | {
3694
+ appliedPrice: {
3695
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3696
+ version: string;
3697
+ profileHash: string;
3698
+ currency: "USD";
3699
+ unit: "resource_hour";
3700
+ hourlyUsd: string;
3701
+ service: "model_modification";
3702
+ };
3703
+ billingBoundary: "active_allocation_until_verified_cleanup";
3704
+ startupBillable: true;
3705
+ postCompletionIdleBillable: false;
3706
+ minimumBillableSeconds: 0;
3707
+ schemaVersion: "openpond.modificationPrice.v2";
3708
+ warmReuseSeconds: 0;
3709
+ } | undefined;
3710
+ createdAt: string;
3711
+ expiresAt: string;
3712
+ };
3713
+ updatedAt: string;
3714
+ method: "weight_space_programming";
3715
+ session: {
3716
+ revision: number;
3717
+ candidateHash: string;
3718
+ historyHash: string;
3719
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3720
+ pendingOperationId: string | null;
3721
+ lastActivityAt: string;
3722
+ finalization: {
3723
+ operationId: string;
3724
+ resultHash: string;
3725
+ historyHashBefore: string;
3726
+ status: "rejected" | "succeeded";
3727
+ } | null;
3728
+ usage: {
3729
+ commands: number;
3730
+ candidates: number;
3731
+ arithmeticWork: number;
3732
+ forwardTokenWork: number;
3733
+ };
3734
+ } | null;
3735
+ schemaVersion: "openpond.weightSpaceExecution.v1";
3736
+ request: {
3737
+ schemaVersion: "openpond.weightSpaceRequest.v1";
3738
+ model: {
3739
+ schemaVersion: "openpond.neuronSteeringModel.v1";
3740
+ modelId: string;
3741
+ revision: string;
3742
+ configHash: string;
3743
+ weightsHash: string;
3744
+ tokenizerHash: string;
3745
+ weightIdentity: "torch_state_dict_sha256_v1";
3746
+ architecture: "dense_decoder";
3747
+ dtype: "bfloat16" | "float16" | "float32";
3748
+ quantization: "none";
3749
+ adapter: null;
3750
+ hiddenSize: number;
3751
+ intermediateSizes: number[];
3752
+ };
3753
+ teacher: {
3754
+ controller: "local_agent";
3755
+ providerId: string;
3756
+ modelId: string;
3757
+ sessionId: string;
3758
+ };
3759
+ objective: string;
3760
+ panels: {
3761
+ id: string;
3762
+ source: {
3763
+ id: string;
3764
+ contentHash: string;
3765
+ revision: number;
3766
+ } | null;
3767
+ role: "development" | "preservation";
3768
+ prompts: {
3769
+ id: string;
3770
+ text: string;
3771
+ system?: string | undefined;
3772
+ }[];
3773
+ }[];
3774
+ frozenEvaluation: {
3775
+ id: string;
3776
+ contentHash: string;
3777
+ revision: number;
3778
+ } | null;
3779
+ generation: {
3780
+ maxOutputTokens: number;
3781
+ seed: number;
3782
+ sampling: "greedy_v1";
3783
+ };
3784
+ limits: {
3785
+ maximumDurationSeconds: number;
3786
+ maximumIdleSeconds: number;
3787
+ maximumCommands: number;
3788
+ maximumCandidates: number;
3789
+ maximumPatchColumns: number;
3790
+ maximumTensorElements: number;
3791
+ maximumReturnedValues: number;
3792
+ maximumArithmeticWork: number;
3793
+ maximumForwardTokenWork: number;
3794
+ maximumCheckpointBytes: number;
3795
+ };
3796
+ };
3797
+ result: {
3798
+ schemaVersion: "openpond.weightSpaceResult.v1";
3799
+ inputHash: string;
3800
+ runtimeHash: string;
3801
+ candidateHash: string;
3802
+ historyHash: string;
3803
+ artifact: {
3804
+ id: string;
3805
+ contentHash: string;
3806
+ manifest: {
3807
+ schemaVersion: "openpond.weightSpaceArtifact.v1";
3808
+ method: "weight_space_programming";
3809
+ representation: "exact_bf16_mlp_column_replacements_v1";
3810
+ model: {
3811
+ schemaVersion: "openpond.neuronSteeringModel.v1";
3812
+ modelId: string;
3813
+ revision: string;
3814
+ configHash: string;
3815
+ weightsHash: string;
3816
+ tokenizerHash: string;
3817
+ weightIdentity: "torch_state_dict_sha256_v1";
3818
+ architecture: "dense_decoder";
3819
+ dtype: "bfloat16" | "float16" | "float32";
3820
+ quantization: "none";
3821
+ adapter: null;
3822
+ hiddenSize: number;
3823
+ intermediateSizes: number[];
3824
+ };
3825
+ requestHash: string;
3826
+ runtimeHash: string;
3827
+ candidateHash: string;
3828
+ teacher: {
3829
+ controller: "local_agent";
3830
+ providerId: string;
3831
+ modelId: string;
3832
+ sessionId: string;
3833
+ };
3834
+ historyHash: string;
3835
+ columns: {
3836
+ layer: number;
3837
+ columns: number[];
3838
+ }[];
3839
+ columnHashes: string[];
3840
+ payload: {
3841
+ path: "patch.safetensors";
3842
+ sha256: string;
3843
+ sizeBytes: number;
3844
+ tensors: {
3845
+ name: string;
3846
+ dtype: "BF16" | "I64";
3847
+ shape: number[];
3848
+ }[];
3849
+ };
3850
+ reload: {
3851
+ effectiveColumnsHash: string;
3852
+ reloadedColumnsHash: string;
3853
+ untouchedWeightsHashBefore: string;
3854
+ untouchedWeightsHashAfter: string;
3855
+ equivalent: true;
3856
+ };
3857
+ contentHash: string;
3858
+ };
3859
+ files: {
3860
+ path: "manifest.json" | "patch.safetensors";
3861
+ artifactId: string;
3862
+ sha256: string;
3863
+ sizeBytes: number;
3864
+ }[];
3865
+ };
3866
+ commands: number;
3867
+ candidates: number;
3868
+ forwardTokenWork: number;
3869
+ durationMs: number;
3870
+ contentHash: string;
3871
+ } | null;
3872
+ resultRecordedAt: string | null;
3873
+ contentHash: string;
3874
+ }>;
3875
+ listWeightSpaceSessions(teamId: string, raw?: z.input<typeof WeightSpaceExecutionListQuerySchema>): Promise<{
3876
+ schemaVersion: "openpond.weightSpaceExecutionPage.v1";
3877
+ teamId: string;
3878
+ ownerUserId: string;
3879
+ query: {
3880
+ method: "weight_space_programming";
3881
+ projectId?: string | undefined;
3882
+ id?: string | undefined;
3883
+ phase?: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping" | undefined;
3884
+ cursor?: string | undefined;
3885
+ limit: number;
3886
+ };
3887
+ items: {
3888
+ id: string;
3889
+ teamId: string;
3890
+ ownerUserId: string;
3891
+ projectId: string | null;
3892
+ name: string;
3893
+ phase: "cancelled" | "completed" | "dispatching" | "failed" | "prepared" | "queued" | "stopping";
3894
+ revision: number;
3895
+ sourceContentHash: string;
3896
+ plan: {
3897
+ contentHash: string;
3898
+ inputHash: string;
3899
+ runtimeHash: string;
3900
+ maximumSpendUsd: string | null;
3901
+ computePrice?: {
3902
+ schemaVersion: "openpond.modificationPrice.v1";
3903
+ appliedPrice: {
3904
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3905
+ version: string;
3906
+ profileHash: string;
3907
+ currency: "USD";
3908
+ unit: "resource_hour";
3909
+ hourlyUsd: string;
3910
+ service: "model_modification";
3911
+ };
3912
+ billingBoundary: "active_allocation_until_verified_cleanup";
3913
+ startupBillable: true;
3914
+ postCompletionIdleBillable: false;
3915
+ minimumBillableSeconds: 0;
3916
+ warmReuseSeconds: 300;
3917
+ } | {
3918
+ appliedPrice: {
3919
+ schemaVersion: "openpond.computeAppliedPrice.v1";
3920
+ version: string;
3921
+ profileHash: string;
3922
+ currency: "USD";
3923
+ unit: "resource_hour";
3924
+ hourlyUsd: string;
3925
+ service: "model_modification";
3926
+ };
3927
+ billingBoundary: "active_allocation_until_verified_cleanup";
3928
+ startupBillable: true;
3929
+ postCompletionIdleBillable: false;
3930
+ minimumBillableSeconds: 0;
3931
+ schemaVersion: "openpond.modificationPrice.v2";
3932
+ warmReuseSeconds: 0;
3933
+ } | undefined;
3934
+ createdAt: string;
3935
+ expiresAt: string;
3936
+ };
3937
+ updatedAt: string;
3938
+ method: "weight_space_programming";
3939
+ session: {
3940
+ revision: number;
3941
+ candidateHash: string;
3942
+ historyHash: string;
3943
+ phase: "busy" | "closed" | "finalizing" | "ready" | "starting";
3944
+ pendingOperationId: string | null;
3945
+ lastActivityAt: string;
3946
+ finalization: {
3947
+ operationId: string;
3948
+ resultHash: string;
3949
+ historyHashBefore: string;
3950
+ status: "rejected" | "succeeded";
3951
+ } | null;
3952
+ usage: {
3953
+ commands: number;
3954
+ candidates: number;
3955
+ arithmeticWork: number;
3956
+ forwardTokenWork: number;
3957
+ };
3958
+ } | null;
3959
+ model: {
3960
+ schemaVersion: "openpond.neuronSteeringModel.v1";
3961
+ modelId: string;
3962
+ revision: string;
3963
+ configHash: string;
3964
+ weightsHash: string;
3965
+ tokenizerHash: string;
3966
+ weightIdentity: "torch_state_dict_sha256_v1";
3967
+ architecture: "dense_decoder";
3968
+ dtype: "bfloat16" | "float16" | "float32";
3969
+ quantization: "none";
3970
+ adapter: null;
3971
+ hiddenSize: number;
3972
+ intermediateSizes: number[];
3973
+ };
3974
+ }[];
3975
+ nextCursor: string | null;
3976
+ contentHash: string;
3977
+ }>;
3978
+ listWeightSpaceCommands(teamId: string, id: string, raw?: z.input<typeof WeightSpaceCommandListQuerySchema>): Promise<{
3979
+ schemaVersion: "openpond.weightSpaceCommandPage.v1";
3980
+ teamId: string;
3981
+ ownerUserId: string;
3982
+ sessionId: string;
3983
+ query: {
3984
+ afterRevision: number;
3985
+ limit: number;
3986
+ };
3987
+ items: {
3988
+ schemaVersion: "openpond.weightSpaceCommandReceipt.v1";
3989
+ teamId: string;
3990
+ ownerUserId: string;
3991
+ command: {
3992
+ teamId: string;
3993
+ sessionId: string;
3994
+ operationId: string;
3995
+ expectedRevision: number;
3996
+ candidateHash: string;
3997
+ action: "catalog";
3998
+ offset: number;
3999
+ limit: number;
4000
+ } | {
4001
+ layer: number;
4002
+ columns: number[];
4003
+ teamId: string;
4004
+ sessionId: string;
4005
+ operationId: string;
4006
+ expectedRevision: number;
4007
+ candidateHash: string;
4008
+ action: "inspect";
4009
+ } | {
4010
+ teamId: string;
4011
+ sessionId: string;
4012
+ operationId: string;
4013
+ expectedRevision: number;
4014
+ candidateHash: string;
4015
+ action: "program";
4016
+ program: {
4017
+ instructions: ({
4018
+ op: "read_tensor";
4019
+ out: string;
4020
+ name: string;
4021
+ source: "base" | "candidate";
4022
+ ranges: {
4023
+ start: number;
4024
+ stop: number;
4025
+ }[];
4026
+ } | {
4027
+ layer: number;
4028
+ columns: number[];
4029
+ op: "read";
4030
+ out: string;
4031
+ source: "base" | "candidate";
4032
+ } | {
4033
+ op: "literal";
4034
+ out: string;
4035
+ shape: number[];
4036
+ values: number[];
4037
+ } | {
4038
+ op: "scale";
4039
+ out: string;
4040
+ input: string;
4041
+ factor: number;
4042
+ } | {
4043
+ op: "add" | "matmul" | "subtract";
4044
+ out: string;
4045
+ left: string;
4046
+ right: string;
4047
+ } | {
4048
+ op: "mean_columns" | "normalize_columns" | "singular_vectors" | "transpose";
4049
+ out: string;
4050
+ input: string;
4051
+ } | {
4052
+ op: "slice";
4053
+ out: string;
4054
+ input: string;
4055
+ axis: number;
4056
+ start: number;
4057
+ stop: number;
4058
+ } | {
4059
+ layer: number;
4060
+ columns: number[];
4061
+ op: "write";
4062
+ input: string;
4063
+ })[];
4064
+ returns: string[];
4065
+ };
4066
+ hypothesis: string;
4067
+ } | {
4068
+ teamId: string;
4069
+ sessionId: string;
4070
+ operationId: string;
4071
+ expectedRevision: number;
4072
+ candidateHash: string;
4073
+ action: "code";
4074
+ code: string;
4075
+ hypothesis: string;
4076
+ } | {
4077
+ teamId: string;
4078
+ sessionId: string;
4079
+ operationId: string;
4080
+ expectedRevision: number;
4081
+ candidateHash: string;
4082
+ action: "evaluate";
4083
+ panelId: string;
4084
+ } | {
4085
+ teamId: string;
4086
+ sessionId: string;
4087
+ operationId: string;
4088
+ expectedRevision: number;
4089
+ candidateHash: string;
4090
+ action: "select";
4091
+ targetCandidateHash: string;
4092
+ } | {
4093
+ teamId: string;
4094
+ sessionId: string;
4095
+ operationId: string;
4096
+ expectedRevision: number;
4097
+ candidateHash: string;
4098
+ action: "finalize";
4099
+ };
4100
+ requestHash: string;
4101
+ state: "completed" | "queued";
4102
+ result: {
4103
+ schemaVersion: "openpond.weightSpaceCommandResult.v1";
4104
+ sessionId: string;
4105
+ operationId: string;
4106
+ requestHash: string;
4107
+ revision: number;
4108
+ parentCandidateHash: string;
4109
+ candidateHash: string;
4110
+ changedColumns: {
4111
+ layer: number;
4112
+ columns: number[];
4113
+ }[];
4114
+ status: "rejected" | "succeeded";
4115
+ code: string | null;
4116
+ catalog: {
4117
+ items: {
4118
+ name: string;
4119
+ shape: number[];
4120
+ dtype: "BF16";
4121
+ editable: boolean;
4122
+ }[];
4123
+ nextOffset: number | null;
4124
+ } | null;
4125
+ tensors: Record<string, {
4126
+ shape: number[];
4127
+ minimum: number;
4128
+ maximum: number;
4129
+ mean: number;
4130
+ norm: number;
4131
+ values: number[];
4132
+ truncated: boolean;
4133
+ }>;
4134
+ evaluation: {
4135
+ panelId: string;
4136
+ role: "development" | "preservation";
4137
+ candidateHash: string;
4138
+ sampling: "greedy_v1";
4139
+ seed: number;
4140
+ rows: {
4141
+ id: string;
4142
+ inputHash: string;
4143
+ outputIds: number[];
4144
+ outputText: string;
4145
+ reachedTokenLimit: boolean;
4146
+ forwardTokenWork: number;
4147
+ }[];
4148
+ } | null;
4149
+ finalEvaluation?: {
4150
+ panelId: string;
4151
+ candidateHash: string;
4152
+ sampling: "greedy_v1";
4153
+ seed: number;
4154
+ rows: {
4155
+ id: string;
4156
+ inputHash: string;
4157
+ outputIds: number[];
4158
+ outputText: string;
4159
+ reachedTokenLimit: boolean;
4160
+ forwardTokenWork: number;
4161
+ }[];
4162
+ role: "frozen";
4163
+ source: {
4164
+ id: string;
4165
+ contentHash: string;
4166
+ revision: number;
4167
+ };
4168
+ baseline: {
4169
+ candidateHash: string;
4170
+ rows: {
4171
+ id: string;
4172
+ inputHash: string;
4173
+ outputIds: number[];
4174
+ outputText: string;
4175
+ reachedTokenLimit: boolean;
4176
+ forwardTokenWork: number;
4177
+ }[];
4178
+ };
4179
+ } | null | undefined;
4180
+ usage: {
4181
+ commands: number;
4182
+ candidates: number;
4183
+ arithmeticWork: number;
4184
+ forwardTokenWork: number;
4185
+ };
4186
+ contentHash: string;
4187
+ } | null;
4188
+ contentHash: string;
4189
+ }[];
4190
+ nextAfterRevision: number | null;
4191
+ contentHash: string;
4192
+ }>;
4193
+ commandWeightSpaceSession(raw: WeightSpaceCommand): Promise<{
4194
+ schemaVersion: "openpond.weightSpaceCommandReceipt.v1";
4195
+ teamId: string;
4196
+ ownerUserId: string;
4197
+ command: {
4198
+ teamId: string;
4199
+ sessionId: string;
4200
+ operationId: string;
4201
+ expectedRevision: number;
4202
+ candidateHash: string;
4203
+ action: "catalog";
4204
+ offset: number;
4205
+ limit: number;
4206
+ } | {
4207
+ layer: number;
4208
+ columns: number[];
4209
+ teamId: string;
4210
+ sessionId: string;
4211
+ operationId: string;
4212
+ expectedRevision: number;
4213
+ candidateHash: string;
4214
+ action: "inspect";
4215
+ } | {
4216
+ teamId: string;
4217
+ sessionId: string;
4218
+ operationId: string;
4219
+ expectedRevision: number;
4220
+ candidateHash: string;
4221
+ action: "program";
4222
+ program: {
4223
+ instructions: ({
4224
+ op: "read_tensor";
4225
+ out: string;
4226
+ name: string;
4227
+ source: "base" | "candidate";
4228
+ ranges: {
4229
+ start: number;
4230
+ stop: number;
4231
+ }[];
4232
+ } | {
4233
+ layer: number;
4234
+ columns: number[];
4235
+ op: "read";
4236
+ out: string;
4237
+ source: "base" | "candidate";
4238
+ } | {
4239
+ op: "literal";
4240
+ out: string;
4241
+ shape: number[];
4242
+ values: number[];
4243
+ } | {
4244
+ op: "scale";
4245
+ out: string;
4246
+ input: string;
4247
+ factor: number;
4248
+ } | {
4249
+ op: "add" | "matmul" | "subtract";
4250
+ out: string;
4251
+ left: string;
4252
+ right: string;
4253
+ } | {
4254
+ op: "mean_columns" | "normalize_columns" | "singular_vectors" | "transpose";
4255
+ out: string;
4256
+ input: string;
4257
+ } | {
4258
+ op: "slice";
4259
+ out: string;
4260
+ input: string;
4261
+ axis: number;
4262
+ start: number;
4263
+ stop: number;
4264
+ } | {
4265
+ layer: number;
4266
+ columns: number[];
4267
+ op: "write";
4268
+ input: string;
4269
+ })[];
4270
+ returns: string[];
4271
+ };
4272
+ hypothesis: string;
4273
+ } | {
4274
+ teamId: string;
4275
+ sessionId: string;
4276
+ operationId: string;
4277
+ expectedRevision: number;
4278
+ candidateHash: string;
4279
+ action: "code";
4280
+ code: string;
4281
+ hypothesis: string;
4282
+ } | {
4283
+ teamId: string;
4284
+ sessionId: string;
4285
+ operationId: string;
4286
+ expectedRevision: number;
4287
+ candidateHash: string;
4288
+ action: "evaluate";
4289
+ panelId: string;
4290
+ } | {
4291
+ teamId: string;
4292
+ sessionId: string;
4293
+ operationId: string;
4294
+ expectedRevision: number;
4295
+ candidateHash: string;
4296
+ action: "select";
4297
+ targetCandidateHash: string;
4298
+ } | {
4299
+ teamId: string;
4300
+ sessionId: string;
4301
+ operationId: string;
4302
+ expectedRevision: number;
4303
+ candidateHash: string;
4304
+ action: "finalize";
4305
+ };
4306
+ requestHash: string;
4307
+ state: "completed" | "queued";
4308
+ result: {
4309
+ schemaVersion: "openpond.weightSpaceCommandResult.v1";
4310
+ sessionId: string;
4311
+ operationId: string;
4312
+ requestHash: string;
4313
+ revision: number;
4314
+ parentCandidateHash: string;
4315
+ candidateHash: string;
4316
+ changedColumns: {
4317
+ layer: number;
4318
+ columns: number[];
4319
+ }[];
4320
+ status: "rejected" | "succeeded";
4321
+ code: string | null;
4322
+ catalog: {
4323
+ items: {
4324
+ name: string;
4325
+ shape: number[];
4326
+ dtype: "BF16";
4327
+ editable: boolean;
4328
+ }[];
4329
+ nextOffset: number | null;
4330
+ } | null;
4331
+ tensors: Record<string, {
4332
+ shape: number[];
4333
+ minimum: number;
4334
+ maximum: number;
4335
+ mean: number;
4336
+ norm: number;
4337
+ values: number[];
4338
+ truncated: boolean;
4339
+ }>;
4340
+ evaluation: {
4341
+ panelId: string;
4342
+ role: "development" | "preservation";
4343
+ candidateHash: string;
4344
+ sampling: "greedy_v1";
4345
+ seed: number;
4346
+ rows: {
4347
+ id: string;
4348
+ inputHash: string;
4349
+ outputIds: number[];
4350
+ outputText: string;
4351
+ reachedTokenLimit: boolean;
4352
+ forwardTokenWork: number;
4353
+ }[];
4354
+ } | null;
4355
+ finalEvaluation?: {
4356
+ panelId: string;
4357
+ candidateHash: string;
4358
+ sampling: "greedy_v1";
4359
+ seed: number;
4360
+ rows: {
4361
+ id: string;
4362
+ inputHash: string;
4363
+ outputIds: number[];
4364
+ outputText: string;
4365
+ reachedTokenLimit: boolean;
4366
+ forwardTokenWork: number;
4367
+ }[];
4368
+ role: "frozen";
4369
+ source: {
4370
+ id: string;
4371
+ contentHash: string;
4372
+ revision: number;
4373
+ };
4374
+ baseline: {
4375
+ candidateHash: string;
4376
+ rows: {
4377
+ id: string;
4378
+ inputHash: string;
4379
+ outputIds: number[];
4380
+ outputText: string;
4381
+ reachedTokenLimit: boolean;
4382
+ forwardTokenWork: number;
4383
+ }[];
4384
+ };
4385
+ } | null | undefined;
4386
+ usage: {
4387
+ commands: number;
4388
+ candidates: number;
4389
+ arithmeticWork: number;
4390
+ forwardTokenWork: number;
4391
+ };
4392
+ contentHash: string;
4393
+ } | null;
4394
+ contentHash: string;
4395
+ }>;
4396
+ getWeightSpaceCommand(teamId: string, sessionId: string, operationId: string): Promise<{
4397
+ schemaVersion: "openpond.weightSpaceCommandReceipt.v1";
4398
+ teamId: string;
4399
+ ownerUserId: string;
4400
+ command: {
4401
+ teamId: string;
4402
+ sessionId: string;
4403
+ operationId: string;
4404
+ expectedRevision: number;
4405
+ candidateHash: string;
4406
+ action: "catalog";
4407
+ offset: number;
4408
+ limit: number;
4409
+ } | {
4410
+ layer: number;
4411
+ columns: number[];
4412
+ teamId: string;
4413
+ sessionId: string;
4414
+ operationId: string;
4415
+ expectedRevision: number;
4416
+ candidateHash: string;
4417
+ action: "inspect";
4418
+ } | {
4419
+ teamId: string;
4420
+ sessionId: string;
4421
+ operationId: string;
4422
+ expectedRevision: number;
4423
+ candidateHash: string;
4424
+ action: "program";
4425
+ program: {
4426
+ instructions: ({
4427
+ op: "read_tensor";
4428
+ out: string;
4429
+ name: string;
4430
+ source: "base" | "candidate";
4431
+ ranges: {
4432
+ start: number;
4433
+ stop: number;
4434
+ }[];
4435
+ } | {
4436
+ layer: number;
4437
+ columns: number[];
4438
+ op: "read";
4439
+ out: string;
4440
+ source: "base" | "candidate";
4441
+ } | {
4442
+ op: "literal";
4443
+ out: string;
4444
+ shape: number[];
4445
+ values: number[];
4446
+ } | {
4447
+ op: "scale";
4448
+ out: string;
4449
+ input: string;
4450
+ factor: number;
4451
+ } | {
4452
+ op: "add" | "matmul" | "subtract";
4453
+ out: string;
4454
+ left: string;
4455
+ right: string;
4456
+ } | {
4457
+ op: "mean_columns" | "normalize_columns" | "singular_vectors" | "transpose";
4458
+ out: string;
4459
+ input: string;
4460
+ } | {
4461
+ op: "slice";
4462
+ out: string;
4463
+ input: string;
4464
+ axis: number;
4465
+ start: number;
4466
+ stop: number;
4467
+ } | {
4468
+ layer: number;
4469
+ columns: number[];
4470
+ op: "write";
4471
+ input: string;
4472
+ })[];
4473
+ returns: string[];
4474
+ };
4475
+ hypothesis: string;
4476
+ } | {
4477
+ teamId: string;
4478
+ sessionId: string;
4479
+ operationId: string;
4480
+ expectedRevision: number;
4481
+ candidateHash: string;
4482
+ action: "code";
4483
+ code: string;
4484
+ hypothesis: string;
4485
+ } | {
4486
+ teamId: string;
4487
+ sessionId: string;
4488
+ operationId: string;
4489
+ expectedRevision: number;
4490
+ candidateHash: string;
4491
+ action: "evaluate";
4492
+ panelId: string;
4493
+ } | {
4494
+ teamId: string;
4495
+ sessionId: string;
4496
+ operationId: string;
4497
+ expectedRevision: number;
4498
+ candidateHash: string;
4499
+ action: "select";
4500
+ targetCandidateHash: string;
4501
+ } | {
4502
+ teamId: string;
4503
+ sessionId: string;
4504
+ operationId: string;
4505
+ expectedRevision: number;
4506
+ candidateHash: string;
4507
+ action: "finalize";
4508
+ };
4509
+ requestHash: string;
4510
+ state: "completed" | "queued";
4511
+ result: {
4512
+ schemaVersion: "openpond.weightSpaceCommandResult.v1";
4513
+ sessionId: string;
4514
+ operationId: string;
4515
+ requestHash: string;
4516
+ revision: number;
4517
+ parentCandidateHash: string;
4518
+ candidateHash: string;
4519
+ changedColumns: {
4520
+ layer: number;
4521
+ columns: number[];
4522
+ }[];
4523
+ status: "rejected" | "succeeded";
4524
+ code: string | null;
4525
+ catalog: {
4526
+ items: {
4527
+ name: string;
4528
+ shape: number[];
4529
+ dtype: "BF16";
4530
+ editable: boolean;
4531
+ }[];
4532
+ nextOffset: number | null;
4533
+ } | null;
4534
+ tensors: Record<string, {
4535
+ shape: number[];
4536
+ minimum: number;
4537
+ maximum: number;
4538
+ mean: number;
4539
+ norm: number;
4540
+ values: number[];
4541
+ truncated: boolean;
4542
+ }>;
4543
+ evaluation: {
4544
+ panelId: string;
4545
+ role: "development" | "preservation";
4546
+ candidateHash: string;
4547
+ sampling: "greedy_v1";
4548
+ seed: number;
4549
+ rows: {
4550
+ id: string;
4551
+ inputHash: string;
4552
+ outputIds: number[];
4553
+ outputText: string;
4554
+ reachedTokenLimit: boolean;
4555
+ forwardTokenWork: number;
4556
+ }[];
4557
+ } | null;
4558
+ finalEvaluation?: {
4559
+ panelId: string;
4560
+ candidateHash: string;
4561
+ sampling: "greedy_v1";
4562
+ seed: number;
4563
+ rows: {
4564
+ id: string;
4565
+ inputHash: string;
4566
+ outputIds: number[];
4567
+ outputText: string;
4568
+ reachedTokenLimit: boolean;
4569
+ forwardTokenWork: number;
4570
+ }[];
4571
+ role: "frozen";
4572
+ source: {
4573
+ id: string;
4574
+ contentHash: string;
4575
+ revision: number;
4576
+ };
4577
+ baseline: {
4578
+ candidateHash: string;
4579
+ rows: {
4580
+ id: string;
4581
+ inputHash: string;
4582
+ outputIds: number[];
4583
+ outputText: string;
4584
+ reachedTokenLimit: boolean;
4585
+ forwardTokenWork: number;
4586
+ }[];
4587
+ };
4588
+ } | null | undefined;
4589
+ usage: {
4590
+ commands: number;
4591
+ candidates: number;
4592
+ arithmeticWork: number;
4593
+ forwardTokenWork: number;
4594
+ };
4595
+ contentHash: string;
4596
+ } | null;
4597
+ contentHash: string;
4598
+ }>;
4599
+ };
4600
+ //# sourceMappingURL=weight-space-sessions.d.ts.map