@openpond/harness 0.2.2 → 0.2.4

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refinement-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/refinement-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmCxB,eAAO,MAAM,kCAAkC;;;;;;EAM7C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;EAM7C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;EAK/C,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyHnD,CAAC;AAEL,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGnC,CAAC;AAEd,eAAO,MAAM,sCAAsC;;;;;;EAMjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;kBAa5C,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwGhD,CAAC;AAEL,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGhC,CAAC;AAEd,eAAO,MAAM,iDAAiD;;;;;;;EAO5D,CAAC;AAEH,eAAO,MAAM,uDA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tD,GAAG,MAAM,CAOT;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,GACnE,gCAAgC,CAMlC;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,gCAAgC,CAM3C;AAgGD,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,gDAAgD,CACxD,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC"}
@@ -42,27 +42,251 @@ export declare const LocalHarnessRefinerDecisionSchema: z.ZodDiscriminatedUnion<
42
42
  reason: z.ZodString;
43
43
  }, z.core.$strip>], "decision">;
44
44
  export type LocalHarnessRefinerDecision = z.infer<typeof LocalHarnessRefinerDecisionSchema>;
45
+ export declare const LocalHarnessRefinerDecisionV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
47
+ decision: z.ZodLiteral<"no_action">;
48
+ reason: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
51
+ decision: z.ZodLiteral<"route">;
52
+ route: z.ZodEnum<{
53
+ runtime: "runtime";
54
+ product: "product";
55
+ taskset: "taskset";
56
+ training: "training";
57
+ }>;
58
+ summary: z.ZodString;
59
+ expectedOutcome: z.ZodString;
60
+ reason: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
63
+ decision: z.ZodLiteral<"propose">;
64
+ route: z.ZodEnum<{
65
+ memory: "memory";
66
+ prompt: "prompt";
67
+ skill: "skill";
68
+ agent: "agent";
69
+ }>;
70
+ operation: z.ZodEnum<{
71
+ create: "create";
72
+ update: "update";
73
+ delete: "delete";
74
+ }>;
75
+ target: z.ZodString;
76
+ summary: z.ZodString;
77
+ createContent: z.ZodNullable<z.ZodString>;
78
+ find: z.ZodNullable<z.ZodString>;
79
+ replace: z.ZodNullable<z.ZodString>;
80
+ expectedOutcome: z.ZodString;
81
+ reason: z.ZodString;
82
+ }, z.core.$strip>], "decision">;
83
+ export declare const HarnessRefinerEvidenceBasisSchema: z.ZodObject<{
84
+ kind: z.ZodEnum<{
85
+ single_deterministic: "single_deterministic";
86
+ recurrent_independent: "recurrent_independent";
87
+ }>;
88
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
89
+ counterevidence: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strict>;
91
+ export declare const LocalHarnessRefinerDecisionV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
93
+ decision: z.ZodLiteral<"no_action">;
94
+ reason: z.ZodString;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
97
+ decision: z.ZodLiteral<"route">;
98
+ route: z.ZodEnum<{
99
+ runtime: "runtime";
100
+ product: "product";
101
+ taskset: "taskset";
102
+ training: "training";
103
+ }>;
104
+ summary: z.ZodString;
105
+ evidenceBasis: z.ZodObject<{
106
+ kind: z.ZodEnum<{
107
+ single_deterministic: "single_deterministic";
108
+ recurrent_independent: "recurrent_independent";
109
+ }>;
110
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
111
+ counterevidence: z.ZodArray<z.ZodString>;
112
+ }, z.core.$strict>;
113
+ expectedOutcome: z.ZodString;
114
+ reason: z.ZodString;
115
+ }, z.core.$strict>, z.ZodObject<{
116
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
117
+ decision: z.ZodLiteral<"propose">;
118
+ route: z.ZodEnum<{
119
+ memory: "memory";
120
+ prompt: "prompt";
121
+ skill: "skill";
122
+ agent: "agent";
123
+ }>;
124
+ operation: z.ZodEnum<{
125
+ create: "create";
126
+ update: "update";
127
+ delete: "delete";
128
+ }>;
129
+ target: z.ZodString;
130
+ summary: z.ZodString;
131
+ evidenceBasis: z.ZodObject<{
132
+ kind: z.ZodEnum<{
133
+ single_deterministic: "single_deterministic";
134
+ recurrent_independent: "recurrent_independent";
135
+ }>;
136
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
137
+ counterevidence: z.ZodArray<z.ZodString>;
138
+ }, z.core.$strict>;
139
+ createContent: z.ZodNullable<z.ZodString>;
140
+ find: z.ZodNullable<z.ZodString>;
141
+ replace: z.ZodNullable<z.ZodString>;
142
+ expectedOutcome: z.ZodString;
143
+ reason: z.ZodString;
144
+ }, z.core.$strict>], "decision">;
145
+ export declare const LocalHarnessRefinerDecisionAnySchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
146
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
147
+ decision: z.ZodLiteral<"no_action">;
148
+ reason: z.ZodString;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
151
+ decision: z.ZodLiteral<"route">;
152
+ route: z.ZodEnum<{
153
+ runtime: "runtime";
154
+ product: "product";
155
+ taskset: "taskset";
156
+ training: "training";
157
+ }>;
158
+ summary: z.ZodString;
159
+ expectedOutcome: z.ZodString;
160
+ reason: z.ZodString;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
163
+ decision: z.ZodLiteral<"propose">;
164
+ route: z.ZodEnum<{
165
+ memory: "memory";
166
+ prompt: "prompt";
167
+ skill: "skill";
168
+ agent: "agent";
169
+ }>;
170
+ operation: z.ZodEnum<{
171
+ create: "create";
172
+ update: "update";
173
+ delete: "delete";
174
+ }>;
175
+ target: z.ZodString;
176
+ summary: z.ZodString;
177
+ createContent: z.ZodNullable<z.ZodString>;
178
+ find: z.ZodNullable<z.ZodString>;
179
+ replace: z.ZodNullable<z.ZodString>;
180
+ expectedOutcome: z.ZodString;
181
+ reason: z.ZodString;
182
+ }, z.core.$strip>], "decision">, z.ZodDiscriminatedUnion<[z.ZodObject<{
183
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
184
+ decision: z.ZodLiteral<"no_action">;
185
+ reason: z.ZodString;
186
+ }, z.core.$strict>, z.ZodObject<{
187
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
188
+ decision: z.ZodLiteral<"route">;
189
+ route: z.ZodEnum<{
190
+ runtime: "runtime";
191
+ product: "product";
192
+ taskset: "taskset";
193
+ training: "training";
194
+ }>;
195
+ summary: z.ZodString;
196
+ evidenceBasis: z.ZodObject<{
197
+ kind: z.ZodEnum<{
198
+ single_deterministic: "single_deterministic";
199
+ recurrent_independent: "recurrent_independent";
200
+ }>;
201
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
202
+ counterevidence: z.ZodArray<z.ZodString>;
203
+ }, z.core.$strict>;
204
+ expectedOutcome: z.ZodString;
205
+ reason: z.ZodString;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
208
+ decision: z.ZodLiteral<"propose">;
209
+ route: z.ZodEnum<{
210
+ memory: "memory";
211
+ prompt: "prompt";
212
+ skill: "skill";
213
+ agent: "agent";
214
+ }>;
215
+ operation: z.ZodEnum<{
216
+ create: "create";
217
+ update: "update";
218
+ delete: "delete";
219
+ }>;
220
+ target: z.ZodString;
221
+ summary: z.ZodString;
222
+ evidenceBasis: z.ZodObject<{
223
+ kind: z.ZodEnum<{
224
+ single_deterministic: "single_deterministic";
225
+ recurrent_independent: "recurrent_independent";
226
+ }>;
227
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
228
+ counterevidence: z.ZodArray<z.ZodString>;
229
+ }, z.core.$strict>;
230
+ createContent: z.ZodNullable<z.ZodString>;
231
+ find: z.ZodNullable<z.ZodString>;
232
+ replace: z.ZodNullable<z.ZodString>;
233
+ expectedOutcome: z.ZodString;
234
+ reason: z.ZodString;
235
+ }, z.core.$strict>], "decision">]>;
236
+ export type HarnessRefinerEvidenceBasis = z.infer<typeof HarnessRefinerEvidenceBasisSchema>;
237
+ export type LocalHarnessRefinerDecisionV2 = z.infer<typeof LocalHarnessRefinerDecisionV2Schema>;
238
+ export type LocalHarnessRefinerDecisionAny = z.infer<typeof LocalHarnessRefinerDecisionAnySchema>;
239
+ export declare const HarnessRefinerCapabilitiesSchema: z.ZodObject<{
240
+ memory: z.ZodBoolean;
241
+ prompt: z.ZodBoolean;
242
+ skill: z.ZodBoolean;
243
+ agent: z.ZodBoolean;
244
+ }, z.core.$strict>;
245
+ export type HarnessRefinerCapabilities = z.infer<typeof HarnessRefinerCapabilitiesSchema>;
45
246
  export declare const LocalHarnessRefinerEvidenceSchema: z.ZodObject<{
247
+ capabilities: z.ZodObject<{
248
+ memory: z.ZodBoolean;
249
+ prompt: z.ZodBoolean;
250
+ skill: z.ZodBoolean;
251
+ agent: z.ZodBoolean;
252
+ }, z.core.$strict>;
46
253
  trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
47
254
  observations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
48
- task: z.ZodObject<{
49
- prompt: z.ZodNullable<z.ZodString>;
50
- assistantOutput: z.ZodNullable<z.ZodString>;
51
- assistantOutputLinkCount: z.ZodNumber;
52
- previousAssistantOutput: z.ZodNullable<z.ZodString>;
255
+ reviewPacket: z.ZodObject<{
256
+ currentTurn: z.ZodObject<{
257
+ id: z.ZodString;
258
+ status: z.ZodNullable<z.ZodString>;
259
+ error: z.ZodNullable<z.ZodString>;
260
+ prompt: z.ZodNullable<z.ZodString>;
261
+ assistantOutput: z.ZodNullable<z.ZodString>;
262
+ assistantOutputLinkCount: z.ZodNumber;
263
+ }, z.core.$strict>;
264
+ priorConversation: z.ZodArray<z.ZodObject<{
265
+ turnId: z.ZodString;
266
+ status: z.ZodNullable<z.ZodString>;
267
+ prompt: z.ZodNullable<z.ZodString>;
268
+ assistantOutput: z.ZodNullable<z.ZodString>;
269
+ }, z.core.$strict>>;
270
+ timeline: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
271
+ artifacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
+ artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ executionProfile: z.ZodObject<{
274
+ modelRequestCount: z.ZodNumber;
275
+ failedModelRequestCount: z.ZodNumber;
276
+ promptTokens: z.ZodNumber;
277
+ completionTokens: z.ZodNumber;
278
+ totalTokens: z.ZodNumber;
279
+ toolFailureCount: z.ZodNumber;
280
+ retryCount: z.ZodNumber;
281
+ recoveryCount: z.ZodNumber;
282
+ }, z.core.$strict>;
283
+ priorIncidents: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
284
+ truncation: z.ZodObject<{
285
+ timelineEventCount: z.ZodNumber;
286
+ includedTimelineEventCount: z.ZodNumber;
287
+ timelineTruncated: z.ZodBoolean;
288
+ }, z.core.$strict>;
53
289
  }, z.core.$strict>;
54
- eventExcerpts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
- artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
- recentOutcomes: z.ZodArray<z.ZodObject<{
57
- id: z.ZodString;
58
- decision: z.ZodEnum<{
59
- no_action: "no_action";
60
- proposed: "proposed";
61
- }>;
62
- reason: z.ZodString;
63
- createdAt: z.ZodString;
64
- triggerId: z.ZodString;
65
- }, z.core.$strict>>;
66
290
  sourceFiles: z.ZodArray<z.ZodObject<{
67
291
  path: z.ZodString;
68
292
  kind: z.ZodEnum<{
@@ -100,10 +324,14 @@ export declare function authorLocalHarnessRefinementWithModel(input: {
100
324
  stream: LocalHarnessRefinerModelStream;
101
325
  signal: AbortSignal;
102
326
  timeoutMs?: number;
103
- }): Promise<LocalHarnessRefinerDecision>;
327
+ }): Promise<LocalHarnessRefinerDecisionV2>;
104
328
  export declare function refinerMessages(evidence: LocalHarnessRefinerEvidence): HarnessRefinerMessage[];
329
+ export declare function admitLocalHarnessRefinerDecision(input: {
330
+ decision: LocalHarnessRefinerDecisionV2;
331
+ evidence: LocalHarnessRefinerEvidence;
332
+ }): LocalHarnessRefinerDecisionV2;
105
333
  export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
106
- schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerRequest.v1">;
334
+ schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerRequest.v2">;
107
335
  requestId: z.ZodString;
108
336
  idempotencyKey: z.ZodString;
109
337
  evidenceHash: z.ZodString;
@@ -135,26 +363,49 @@ export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
135
363
  }, z.core.$strict>;
136
364
  }, z.core.$strict>;
137
365
  evidence: z.ZodObject<{
366
+ capabilities: z.ZodObject<{
367
+ memory: z.ZodBoolean;
368
+ prompt: z.ZodBoolean;
369
+ skill: z.ZodBoolean;
370
+ agent: z.ZodBoolean;
371
+ }, z.core.$strict>;
138
372
  trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
139
373
  observations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
- task: z.ZodObject<{
141
- prompt: z.ZodNullable<z.ZodString>;
142
- assistantOutput: z.ZodNullable<z.ZodString>;
143
- assistantOutputLinkCount: z.ZodNumber;
144
- previousAssistantOutput: z.ZodNullable<z.ZodString>;
374
+ reviewPacket: z.ZodObject<{
375
+ currentTurn: z.ZodObject<{
376
+ id: z.ZodString;
377
+ status: z.ZodNullable<z.ZodString>;
378
+ error: z.ZodNullable<z.ZodString>;
379
+ prompt: z.ZodNullable<z.ZodString>;
380
+ assistantOutput: z.ZodNullable<z.ZodString>;
381
+ assistantOutputLinkCount: z.ZodNumber;
382
+ }, z.core.$strict>;
383
+ priorConversation: z.ZodArray<z.ZodObject<{
384
+ turnId: z.ZodString;
385
+ status: z.ZodNullable<z.ZodString>;
386
+ prompt: z.ZodNullable<z.ZodString>;
387
+ assistantOutput: z.ZodNullable<z.ZodString>;
388
+ }, z.core.$strict>>;
389
+ timeline: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
390
+ artifacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
+ artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392
+ executionProfile: z.ZodObject<{
393
+ modelRequestCount: z.ZodNumber;
394
+ failedModelRequestCount: z.ZodNumber;
395
+ promptTokens: z.ZodNumber;
396
+ completionTokens: z.ZodNumber;
397
+ totalTokens: z.ZodNumber;
398
+ toolFailureCount: z.ZodNumber;
399
+ retryCount: z.ZodNumber;
400
+ recoveryCount: z.ZodNumber;
401
+ }, z.core.$strict>;
402
+ priorIncidents: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
403
+ truncation: z.ZodObject<{
404
+ timelineEventCount: z.ZodNumber;
405
+ includedTimelineEventCount: z.ZodNumber;
406
+ timelineTruncated: z.ZodBoolean;
407
+ }, z.core.$strict>;
145
408
  }, z.core.$strict>;
146
- eventExcerpts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
147
- artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
- recentOutcomes: z.ZodArray<z.ZodObject<{
149
- id: z.ZodString;
150
- decision: z.ZodEnum<{
151
- no_action: "no_action";
152
- proposed: "proposed";
153
- }>;
154
- reason: z.ZodString;
155
- createdAt: z.ZodString;
156
- triggerId: z.ZodString;
157
- }, z.core.$strict>>;
158
409
  sourceFiles: z.ZodArray<z.ZodObject<{
159
410
  path: z.ZodString;
160
411
  kind: z.ZodEnum<{
@@ -181,7 +432,7 @@ export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
181
432
  }, z.core.$strict>;
182
433
  export type HostedHarnessRefinerRequest = z.infer<typeof HostedHarnessRefinerRequestSchema>;
183
434
  export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
184
- schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerResponse.v1">;
435
+ schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerResponse.v2">;
185
436
  requestId: z.ZodString;
186
437
  evidenceHash: z.ZodString;
187
438
  admittedRelease: z.ZodObject<{
@@ -193,11 +444,11 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
193
444
  contentHash: z.ZodString;
194
445
  }, z.core.$strict>;
195
446
  decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
196
- schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
447
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
197
448
  decision: z.ZodLiteral<"no_action">;
198
449
  reason: z.ZodString;
199
- }, z.core.$strip>, z.ZodObject<{
200
- schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
450
+ }, z.core.$strict>, z.ZodObject<{
451
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
201
452
  decision: z.ZodLiteral<"route">;
202
453
  route: z.ZodEnum<{
203
454
  runtime: "runtime";
@@ -206,10 +457,18 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
206
457
  training: "training";
207
458
  }>;
208
459
  summary: z.ZodString;
460
+ evidenceBasis: z.ZodObject<{
461
+ kind: z.ZodEnum<{
462
+ single_deterministic: "single_deterministic";
463
+ recurrent_independent: "recurrent_independent";
464
+ }>;
465
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
466
+ counterevidence: z.ZodArray<z.ZodString>;
467
+ }, z.core.$strict>;
209
468
  expectedOutcome: z.ZodString;
210
469
  reason: z.ZodString;
211
- }, z.core.$strip>, z.ZodObject<{
212
- schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
470
+ }, z.core.$strict>, z.ZodObject<{
471
+ schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
213
472
  decision: z.ZodLiteral<"propose">;
214
473
  route: z.ZodEnum<{
215
474
  memory: "memory";
@@ -224,12 +483,20 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
224
483
  }>;
225
484
  target: z.ZodString;
226
485
  summary: z.ZodString;
486
+ evidenceBasis: z.ZodObject<{
487
+ kind: z.ZodEnum<{
488
+ single_deterministic: "single_deterministic";
489
+ recurrent_independent: "recurrent_independent";
490
+ }>;
491
+ supportingEvidenceIds: z.ZodArray<z.ZodString>;
492
+ counterevidence: z.ZodArray<z.ZodString>;
493
+ }, z.core.$strict>;
227
494
  createContent: z.ZodNullable<z.ZodString>;
228
495
  find: z.ZodNullable<z.ZodString>;
229
496
  replace: z.ZodNullable<z.ZodString>;
230
497
  expectedOutcome: z.ZodString;
231
498
  reason: z.ZodString;
232
- }, z.core.$strip>], "decision">;
499
+ }, z.core.$strict>], "decision">;
233
500
  serviceRevision: z.ZodString;
234
501
  usage: z.ZodObject<{
235
502
  promptTokens: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"refiner.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vC,GAAG,6BAA6B,CAShC;AA2HD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBnC,CAAC;AAEZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAUF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWpC,CAAC;AAEZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,iCAAiC,QAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpond/harness",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Portable immutable Harness releases, workspaces, improvements, traces, tools, and model identities for OpenPond",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,6 +46,10 @@
46
46
  "types": "./dist/types/refiner-detection.d.ts",
47
47
  "import": "./dist/refiner-detection.js"
48
48
  },
49
+ "./refinement-lifecycle": {
50
+ "types": "./dist/types/refinement-lifecycle.d.ts",
51
+ "import": "./dist/refinement-lifecycle.js"
52
+ },
49
53
  "./refiner-support": {
50
54
  "types": "./dist/types/refiner-support.d.ts",
51
55
  "import": "./dist/refiner-support.js"