@tangle-network/agent-interface 5.7.0 → 5.8.0

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 (44) hide show
  1. package/README.md +11 -2
  2. package/dist/agent-candidate-code-schema.d.ts +24 -24
  3. package/dist/agent-candidate-execution-plan-schema.d.ts +245 -245
  4. package/dist/agent-candidate-lineage-schema.d.ts +2 -2
  5. package/dist/agent-candidate-outcome-schema.d.ts +56 -56
  6. package/dist/agent-candidate-profile-schema.d.ts +22 -22
  7. package/dist/agent-candidate-promotion-schema.d.ts +1824 -1824
  8. package/dist/agent-candidate-receipt-schema.d.ts +201 -201
  9. package/dist/agent-candidate-schema-common.d.ts +3 -3
  10. package/dist/agent-candidate-schema.d.ts +36 -36
  11. package/dist/agent-candidate-task-schema.d.ts +16 -16
  12. package/dist/agent-execution-preparation-receipt.d.ts +81 -81
  13. package/dist/agent-improvement-measurement-schema.d.ts +25 -25
  14. package/dist/agent-profile-improvement-schema.d.ts +75 -75
  15. package/dist/agent-profile.d.ts +10 -28
  16. package/dist/agent-workspace-lease.d.ts +4 -4
  17. package/dist/environment-interactive-control.d.ts +473 -473
  18. package/dist/environment-interactive-start.d.ts +38 -29
  19. package/dist/environment-observation.d.ts +32 -32
  20. package/dist/environment-profile-capabilities.d.ts +1 -1
  21. package/dist/environment-runtime.d.ts +171 -144
  22. package/dist/harness-capabilities.d.ts +17 -18
  23. package/dist/harness-capabilities.js +41 -44
  24. package/dist/harness.d.ts +13 -11
  25. package/dist/harness.js +5 -0
  26. package/dist/interaction-envelope.d.ts +26 -26
  27. package/dist/interaction-fields.d.ts +22 -22
  28. package/dist/interaction-permissions.d.ts +2 -2
  29. package/dist/learning-state.d.ts +143 -143
  30. package/dist/portable-context-base.d.ts +1 -1
  31. package/dist/portable-context-commitments.d.ts +8 -8
  32. package/dist/portable-context-continuation.d.ts +4 -4
  33. package/dist/portable-context-plan-request.d.ts +1 -1
  34. package/dist/portable-context-plan-wire.d.ts +2 -2
  35. package/dist/portable-context-plan.d.ts +5 -5
  36. package/dist/portable-context-shared.d.ts +1 -1
  37. package/dist/portable-context-transfer.d.ts +43 -34
  38. package/dist/profile-schema.d.ts +78 -60
  39. package/dist/profile-schema.js +7 -3
  40. package/dist/proxy-secrets.d.ts +12 -12
  41. package/dist/runtime-control.d.ts +5 -5
  42. package/dist/workspace-cleanup.d.ts +3 -3
  43. package/dist/workspace-fork.d.ts +4 -4
  44. package/package.json +5 -5
@@ -13,6 +13,8 @@ export declare const agentCandidateEvaluationPolicySchema: z.ZodObject<{
13
13
  }, z.core.$strict>;
14
14
  export declare const measuredComparisonCommonShape: {
15
15
  overall: z.ZodObject<{
16
+ direction: z.ZodLiteral<"higher-is-better">;
17
+ unit: z.ZodLiteral<"score">;
16
18
  baseline: z.ZodNumber;
17
19
  candidate: z.ZodNumber;
18
20
  delta: z.ZodNumber;
@@ -26,10 +28,12 @@ export declare const measuredComparisonCommonShape: {
26
28
  }, z.core.$strict>;
27
29
  n: z.ZodNumber;
28
30
  name: z.ZodLiteral<"composite">;
29
- direction: z.ZodLiteral<"higher-is-better">;
30
- unit: z.ZodLiteral<"score">;
31
31
  }, z.core.$strict>;
32
32
  objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
33
+ kind: z.ZodLiteral<"objective">;
34
+ name: z.ZodString;
35
+ direction: z.ZodLiteral<"higher-is-better">;
36
+ unit: z.ZodLiteral<"score">;
33
37
  baseline: z.ZodNumber;
34
38
  candidate: z.ZodNumber;
35
39
  delta: z.ZodNumber;
@@ -42,10 +46,6 @@ export declare const measuredComparisonCommonShape: {
42
46
  resamples: z.ZodNumber;
43
47
  }, z.core.$strict>;
44
48
  n: z.ZodNumber;
45
- kind: z.ZodLiteral<"objective">;
46
- name: z.ZodString;
47
- direction: z.ZodLiteral<"higher-is-better">;
48
- unit: z.ZodLiteral<"score">;
49
49
  availability: z.ZodLiteral<"measured">;
50
50
  }, z.core.$strict>, z.ZodObject<{
51
51
  kind: z.ZodLiteral<"objective">;
@@ -55,6 +55,11 @@ export declare const measuredComparisonCommonShape: {
55
55
  availability: z.ZodLiteral<"unavailable">;
56
56
  reason: z.ZodString;
57
57
  }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"dimension">;
59
+ objective: z.ZodString;
60
+ name: z.ZodString;
61
+ direction: z.ZodLiteral<"higher-is-better">;
62
+ unit: z.ZodLiteral<"score">;
58
63
  baseline: z.ZodNumber;
59
64
  candidate: z.ZodNumber;
60
65
  delta: z.ZodNumber;
@@ -67,11 +72,6 @@ export declare const measuredComparisonCommonShape: {
67
72
  resamples: z.ZodNumber;
68
73
  }, z.core.$strict>;
69
74
  n: z.ZodNumber;
70
- kind: z.ZodLiteral<"dimension">;
71
- objective: z.ZodString;
72
- name: z.ZodString;
73
- direction: z.ZodLiteral<"higher-is-better">;
74
- unit: z.ZodLiteral<"score">;
75
75
  availability: z.ZodLiteral<"measured">;
76
76
  }, z.core.$strict>, z.ZodObject<{
77
77
  kind: z.ZodLiteral<"dimension">;
@@ -82,6 +82,10 @@ export declare const measuredComparisonCommonShape: {
82
82
  availability: z.ZodLiteral<"unavailable">;
83
83
  reason: z.ZodString;
84
84
  }, z.core.$strict>, z.ZodObject<{
85
+ kind: z.ZodLiteral<"cost">;
86
+ name: z.ZodLiteral<"cost">;
87
+ direction: z.ZodLiteral<"lower-is-better">;
88
+ unit: z.ZodLiteral<"usd">;
85
89
  baseline: z.ZodNumber;
86
90
  candidate: z.ZodNumber;
87
91
  delta: z.ZodNumber;
@@ -94,12 +98,12 @@ export declare const measuredComparisonCommonShape: {
94
98
  resamples: z.ZodNumber;
95
99
  }, z.core.$strict>;
96
100
  n: z.ZodNumber;
97
- kind: z.ZodLiteral<"cost">;
98
- name: z.ZodLiteral<"cost">;
99
- direction: z.ZodLiteral<"lower-is-better">;
100
- unit: z.ZodLiteral<"usd">;
101
101
  availability: z.ZodLiteral<"measured">;
102
102
  }, z.core.$strict>, z.ZodObject<{
103
+ kind: z.ZodLiteral<"latency">;
104
+ name: z.ZodLiteral<"latency">;
105
+ direction: z.ZodLiteral<"lower-is-better">;
106
+ unit: z.ZodLiteral<"milliseconds">;
103
107
  baseline: z.ZodNumber;
104
108
  candidate: z.ZodNumber;
105
109
  delta: z.ZodNumber;
@@ -112,10 +116,6 @@ export declare const measuredComparisonCommonShape: {
112
116
  resamples: z.ZodNumber;
113
117
  }, z.core.$strict>;
114
118
  n: z.ZodNumber;
115
- kind: z.ZodLiteral<"latency">;
116
- name: z.ZodLiteral<"latency">;
117
- direction: z.ZodLiteral<"lower-is-better">;
118
- unit: z.ZodLiteral<"milliseconds">;
119
119
  availability: z.ZodLiteral<"measured">;
120
120
  }, z.core.$strict>]>>;
121
121
  candidate: z.ZodOptional<z.ZodObject<{
@@ -124,11 +124,11 @@ export declare const measuredComparisonCommonShape: {
124
124
  }, z.core.$strict>>;
125
125
  decision: z.ZodObject<{
126
126
  outcome: z.ZodEnum<{
127
- arch_ceiling: "arch_ceiling";
127
+ ship: "ship";
128
128
  hold: "hold";
129
- model_ceiling: "model_ceiling";
130
129
  need_more_work: "need_more_work";
131
- ship: "ship";
130
+ model_ceiling: "model_ceiling";
131
+ arch_ceiling: "arch_ceiling";
132
132
  }>;
133
133
  reasons: z.ZodArray<z.ZodString>;
134
134
  contributingChecks: z.ZodArray<z.ZodObject<{
@@ -161,8 +161,8 @@ export declare const measuredComparisonCommonShape: {
161
161
  cost: z.ZodObject<{
162
162
  usd: z.ZodNumber;
163
163
  provenance: z.ZodEnum<{
164
- estimated: "estimated";
165
164
  observed: "observed";
165
+ estimated: "estimated";
166
166
  }>;
167
167
  }, z.core.$strict>;
168
168
  }, z.core.$strict>;
@@ -172,8 +172,8 @@ export declare const measuredComparisonCommonShape: {
172
172
  cost: z.ZodObject<{
173
173
  usd: z.ZodNumber;
174
174
  provenance: z.ZodEnum<{
175
- estimated: "estimated";
176
175
  observed: "observed";
176
+ estimated: "estimated";
177
177
  }>;
178
178
  }, z.core.$strict>;
179
179
  }, z.core.$strict>;
@@ -182,8 +182,8 @@ export declare const measuredComparisonCommonShape: {
182
182
  cost: z.ZodObject<{
183
183
  usd: z.ZodNumber;
184
184
  provenance: z.ZodEnum<{
185
- estimated: "estimated";
186
185
  observed: "observed";
186
+ estimated: "estimated";
187
187
  }>;
188
188
  }, z.core.$strict>;
189
189
  }, z.core.$strict>;
@@ -38,13 +38,13 @@ export declare const agentProfileImprovementTaskSchema: z.ZodObject<{
38
38
  model: z.ZodString;
39
39
  snapshot: z.ZodString;
40
40
  reasoningEffort: z.ZodEnum<{
41
- high: "high";
41
+ none: "none";
42
+ minimal: "minimal";
42
43
  low: "low";
43
44
  medium: "medium";
44
- minimal: "minimal";
45
- none: "none";
46
- ultracode: "ultracode";
45
+ high: "high";
47
46
  xhigh: "xhigh";
47
+ ultracode: "ultracode";
48
48
  }>;
49
49
  }, z.core.$strict>;
50
50
  limits: z.ZodObject<{
@@ -114,13 +114,13 @@ export declare const agentProfileImprovementSuiteInputsSchema: z.ZodObject<{
114
114
  model: z.ZodString;
115
115
  snapshot: z.ZodString;
116
116
  reasoningEffort: z.ZodEnum<{
117
- high: "high";
117
+ none: "none";
118
+ minimal: "minimal";
118
119
  low: "low";
119
120
  medium: "medium";
120
- minimal: "minimal";
121
- none: "none";
122
- ultracode: "ultracode";
121
+ high: "high";
123
122
  xhigh: "xhigh";
123
+ ultracode: "ultracode";
124
124
  }>;
125
125
  }, z.core.$strict>;
126
126
  limits: z.ZodObject<{
@@ -170,13 +170,13 @@ export declare const agentProfileImprovementSuiteInputsSchema: z.ZodObject<{
170
170
  model: z.ZodString;
171
171
  snapshot: z.ZodString;
172
172
  reasoningEffort: z.ZodEnum<{
173
- high: "high";
173
+ none: "none";
174
+ minimal: "minimal";
174
175
  low: "low";
175
176
  medium: "medium";
176
- minimal: "minimal";
177
- none: "none";
178
- ultracode: "ultracode";
177
+ high: "high";
179
178
  xhigh: "xhigh";
179
+ ultracode: "ultracode";
180
180
  }>;
181
181
  }, z.core.$strict>;
182
182
  limits: z.ZodObject<{
@@ -247,11 +247,11 @@ export declare const agentProfileImprovementExperimentSchema: z.ZodObject<{
247
247
  change: z.ZodTuple<[z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>], z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>>;
248
248
  candidateLineage: z.ZodObject<{
249
249
  source: z.ZodEnum<{
250
- compound: "compound";
251
250
  "frontier-author": "frontier-author";
252
251
  human: "human";
253
- import: "import";
254
252
  optimizer: "optimizer";
253
+ compound: "compound";
254
+ import: "import";
255
255
  }>;
256
256
  parentDigests: z.ZodOptional<z.ZodArray<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>>;
257
257
  runIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -306,13 +306,13 @@ export declare const agentProfileImprovementExperimentSchema: z.ZodObject<{
306
306
  model: z.ZodString;
307
307
  snapshot: z.ZodString;
308
308
  reasoningEffort: z.ZodEnum<{
309
- high: "high";
309
+ none: "none";
310
+ minimal: "minimal";
310
311
  low: "low";
311
312
  medium: "medium";
312
- minimal: "minimal";
313
- none: "none";
314
- ultracode: "ultracode";
313
+ high: "high";
315
314
  xhigh: "xhigh";
315
+ ultracode: "ultracode";
316
316
  }>;
317
317
  }, z.core.$strict>;
318
318
  limits: z.ZodObject<{
@@ -362,13 +362,13 @@ export declare const agentProfileImprovementExperimentSchema: z.ZodObject<{
362
362
  model: z.ZodString;
363
363
  snapshot: z.ZodString;
364
364
  reasoningEffort: z.ZodEnum<{
365
- high: "high";
365
+ none: "none";
366
+ minimal: "minimal";
366
367
  low: "low";
367
368
  medium: "medium";
368
- minimal: "minimal";
369
- none: "none";
370
- ultracode: "ultracode";
369
+ high: "high";
371
370
  xhigh: "xhigh";
371
+ ultracode: "ultracode";
372
372
  }>;
373
373
  }, z.core.$strict>;
374
374
  limits: z.ZodObject<{
@@ -462,13 +462,13 @@ export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
462
462
  model: z.ZodString;
463
463
  snapshot: z.ZodString;
464
464
  reasoningEffort: z.ZodEnum<{
465
- high: "high";
465
+ none: "none";
466
+ minimal: "minimal";
466
467
  low: "low";
467
468
  medium: "medium";
468
- minimal: "minimal";
469
- none: "none";
470
- ultracode: "ultracode";
469
+ high: "high";
471
470
  xhigh: "xhigh";
471
+ ultracode: "ultracode";
472
472
  }>;
473
473
  }, z.core.$strict>;
474
474
  limits: z.ZodObject<{
@@ -488,8 +488,8 @@ export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
488
488
  modelCalls: z.ZodNumber;
489
489
  costUsdNanos: z.ZodNumber;
490
490
  costProvenance: z.ZodEnum<{
491
- estimated: "estimated";
492
491
  observed: "observed";
492
+ estimated: "estimated";
493
493
  }>;
494
494
  }, z.core.$strict>;
495
495
  trace: z.ZodObject<{
@@ -555,8 +555,8 @@ export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
555
555
  modelCalls: z.ZodNumber;
556
556
  costUsdNanos: z.ZodNumber;
557
557
  costProvenance: z.ZodEnum<{
558
- estimated: "estimated";
559
558
  observed: "observed";
559
+ estimated: "estimated";
560
560
  }>;
561
561
  }, z.core.$strict>;
562
562
  score: z.ZodNumber;
@@ -570,6 +570,8 @@ export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
570
570
  }, z.core.$strict>;
571
571
  export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObject<{
572
572
  overall: z.ZodObject<{
573
+ direction: z.ZodLiteral<"higher-is-better">;
574
+ unit: z.ZodLiteral<"score">;
573
575
  baseline: z.ZodNumber;
574
576
  candidate: z.ZodNumber;
575
577
  delta: z.ZodNumber;
@@ -583,10 +585,12 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
583
585
  }, z.core.$strict>;
584
586
  n: z.ZodNumber;
585
587
  name: z.ZodLiteral<"composite">;
586
- direction: z.ZodLiteral<"higher-is-better">;
587
- unit: z.ZodLiteral<"score">;
588
588
  }, z.core.$strict>;
589
589
  objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
590
+ kind: z.ZodLiteral<"objective">;
591
+ name: z.ZodString;
592
+ direction: z.ZodLiteral<"higher-is-better">;
593
+ unit: z.ZodLiteral<"score">;
590
594
  baseline: z.ZodNumber;
591
595
  candidate: z.ZodNumber;
592
596
  delta: z.ZodNumber;
@@ -599,10 +603,6 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
599
603
  resamples: z.ZodNumber;
600
604
  }, z.core.$strict>;
601
605
  n: z.ZodNumber;
602
- kind: z.ZodLiteral<"objective">;
603
- name: z.ZodString;
604
- direction: z.ZodLiteral<"higher-is-better">;
605
- unit: z.ZodLiteral<"score">;
606
606
  availability: z.ZodLiteral<"measured">;
607
607
  }, z.core.$strict>, z.ZodObject<{
608
608
  kind: z.ZodLiteral<"objective">;
@@ -612,6 +612,11 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
612
612
  availability: z.ZodLiteral<"unavailable">;
613
613
  reason: z.ZodString;
614
614
  }, z.core.$strict>, z.ZodObject<{
615
+ kind: z.ZodLiteral<"dimension">;
616
+ objective: z.ZodString;
617
+ name: z.ZodString;
618
+ direction: z.ZodLiteral<"higher-is-better">;
619
+ unit: z.ZodLiteral<"score">;
615
620
  baseline: z.ZodNumber;
616
621
  candidate: z.ZodNumber;
617
622
  delta: z.ZodNumber;
@@ -624,11 +629,6 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
624
629
  resamples: z.ZodNumber;
625
630
  }, z.core.$strict>;
626
631
  n: z.ZodNumber;
627
- kind: z.ZodLiteral<"dimension">;
628
- objective: z.ZodString;
629
- name: z.ZodString;
630
- direction: z.ZodLiteral<"higher-is-better">;
631
- unit: z.ZodLiteral<"score">;
632
632
  availability: z.ZodLiteral<"measured">;
633
633
  }, z.core.$strict>, z.ZodObject<{
634
634
  kind: z.ZodLiteral<"dimension">;
@@ -639,6 +639,10 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
639
639
  availability: z.ZodLiteral<"unavailable">;
640
640
  reason: z.ZodString;
641
641
  }, z.core.$strict>, z.ZodObject<{
642
+ kind: z.ZodLiteral<"cost">;
643
+ name: z.ZodLiteral<"cost">;
644
+ direction: z.ZodLiteral<"lower-is-better">;
645
+ unit: z.ZodLiteral<"usd">;
642
646
  baseline: z.ZodNumber;
643
647
  candidate: z.ZodNumber;
644
648
  delta: z.ZodNumber;
@@ -651,12 +655,12 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
651
655
  resamples: z.ZodNumber;
652
656
  }, z.core.$strict>;
653
657
  n: z.ZodNumber;
654
- kind: z.ZodLiteral<"cost">;
655
- name: z.ZodLiteral<"cost">;
656
- direction: z.ZodLiteral<"lower-is-better">;
657
- unit: z.ZodLiteral<"usd">;
658
658
  availability: z.ZodLiteral<"measured">;
659
659
  }, z.core.$strict>, z.ZodObject<{
660
+ kind: z.ZodLiteral<"latency">;
661
+ name: z.ZodLiteral<"latency">;
662
+ direction: z.ZodLiteral<"lower-is-better">;
663
+ unit: z.ZodLiteral<"milliseconds">;
660
664
  baseline: z.ZodNumber;
661
665
  candidate: z.ZodNumber;
662
666
  delta: z.ZodNumber;
@@ -669,10 +673,6 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
669
673
  resamples: z.ZodNumber;
670
674
  }, z.core.$strict>;
671
675
  n: z.ZodNumber;
672
- kind: z.ZodLiteral<"latency">;
673
- name: z.ZodLiteral<"latency">;
674
- direction: z.ZodLiteral<"lower-is-better">;
675
- unit: z.ZodLiteral<"milliseconds">;
676
676
  availability: z.ZodLiteral<"measured">;
677
677
  }, z.core.$strict>]>>;
678
678
  candidate: z.ZodOptional<z.ZodObject<{
@@ -681,11 +681,11 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
681
681
  }, z.core.$strict>>;
682
682
  decision: z.ZodObject<{
683
683
  outcome: z.ZodEnum<{
684
- arch_ceiling: "arch_ceiling";
684
+ ship: "ship";
685
685
  hold: "hold";
686
- model_ceiling: "model_ceiling";
687
686
  need_more_work: "need_more_work";
688
- ship: "ship";
687
+ model_ceiling: "model_ceiling";
688
+ arch_ceiling: "arch_ceiling";
689
689
  }>;
690
690
  reasons: z.ZodArray<z.ZodString>;
691
691
  contributingChecks: z.ZodArray<z.ZodObject<{
@@ -718,8 +718,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
718
718
  cost: z.ZodObject<{
719
719
  usd: z.ZodNumber;
720
720
  provenance: z.ZodEnum<{
721
- estimated: "estimated";
722
721
  observed: "observed";
722
+ estimated: "estimated";
723
723
  }>;
724
724
  }, z.core.$strict>;
725
725
  }, z.core.$strict>;
@@ -729,8 +729,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
729
729
  cost: z.ZodObject<{
730
730
  usd: z.ZodNumber;
731
731
  provenance: z.ZodEnum<{
732
- estimated: "estimated";
733
732
  observed: "observed";
733
+ estimated: "estimated";
734
734
  }>;
735
735
  }, z.core.$strict>;
736
736
  }, z.core.$strict>;
@@ -739,8 +739,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
739
739
  cost: z.ZodObject<{
740
740
  usd: z.ZodNumber;
741
741
  provenance: z.ZodEnum<{
742
- estimated: "estimated";
743
742
  observed: "observed";
743
+ estimated: "estimated";
744
744
  }>;
745
745
  }, z.core.$strict>;
746
746
  }, z.core.$strict>;
@@ -792,11 +792,11 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
792
792
  change: z.ZodTuple<[z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>], z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>>;
793
793
  candidateLineage: z.ZodObject<{
794
794
  source: z.ZodEnum<{
795
- compound: "compound";
796
795
  "frontier-author": "frontier-author";
797
796
  human: "human";
798
- import: "import";
799
797
  optimizer: "optimizer";
798
+ compound: "compound";
799
+ import: "import";
800
800
  }>;
801
801
  parentDigests: z.ZodOptional<z.ZodArray<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>>;
802
802
  runIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -851,13 +851,13 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
851
851
  model: z.ZodString;
852
852
  snapshot: z.ZodString;
853
853
  reasoningEffort: z.ZodEnum<{
854
- high: "high";
854
+ none: "none";
855
+ minimal: "minimal";
855
856
  low: "low";
856
857
  medium: "medium";
857
- minimal: "minimal";
858
- none: "none";
859
- ultracode: "ultracode";
858
+ high: "high";
860
859
  xhigh: "xhigh";
860
+ ultracode: "ultracode";
861
861
  }>;
862
862
  }, z.core.$strict>;
863
863
  limits: z.ZodObject<{
@@ -907,13 +907,13 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
907
907
  model: z.ZodString;
908
908
  snapshot: z.ZodString;
909
909
  reasoningEffort: z.ZodEnum<{
910
- high: "high";
910
+ none: "none";
911
+ minimal: "minimal";
911
912
  low: "low";
912
913
  medium: "medium";
913
- minimal: "minimal";
914
- none: "none";
915
- ultracode: "ultracode";
914
+ high: "high";
916
915
  xhigh: "xhigh";
916
+ ultracode: "ultracode";
917
917
  }>;
918
918
  }, z.core.$strict>;
919
919
  limits: z.ZodObject<{
@@ -992,13 +992,13 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
992
992
  model: z.ZodString;
993
993
  snapshot: z.ZodString;
994
994
  reasoningEffort: z.ZodEnum<{
995
- high: "high";
995
+ none: "none";
996
+ minimal: "minimal";
996
997
  low: "low";
997
998
  medium: "medium";
998
- minimal: "minimal";
999
- none: "none";
1000
- ultracode: "ultracode";
999
+ high: "high";
1001
1000
  xhigh: "xhigh";
1001
+ ultracode: "ultracode";
1002
1002
  }>;
1003
1003
  }, z.core.$strict>;
1004
1004
  limits: z.ZodObject<{
@@ -1018,8 +1018,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
1018
1018
  modelCalls: z.ZodNumber;
1019
1019
  costUsdNanos: z.ZodNumber;
1020
1020
  costProvenance: z.ZodEnum<{
1021
- estimated: "estimated";
1022
1021
  observed: "observed";
1022
+ estimated: "estimated";
1023
1023
  }>;
1024
1024
  }, z.core.$strict>;
1025
1025
  trace: z.ZodObject<{
@@ -1085,8 +1085,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
1085
1085
  modelCalls: z.ZodNumber;
1086
1086
  costUsdNanos: z.ZodNumber;
1087
1087
  costProvenance: z.ZodEnum<{
1088
- estimated: "estimated";
1089
1088
  observed: "observed";
1089
+ estimated: "estimated";
1090
1090
  }>;
1091
1091
  }, z.core.$strict>;
1092
1092
  score: z.ZodNumber;
@@ -1149,13 +1149,13 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
1149
1149
  model: z.ZodString;
1150
1150
  snapshot: z.ZodString;
1151
1151
  reasoningEffort: z.ZodEnum<{
1152
- high: "high";
1152
+ none: "none";
1153
+ minimal: "minimal";
1153
1154
  low: "low";
1154
1155
  medium: "medium";
1155
- minimal: "minimal";
1156
- none: "none";
1157
- ultracode: "ultracode";
1156
+ high: "high";
1158
1157
  xhigh: "xhigh";
1158
+ ultracode: "ultracode";
1159
1159
  }>;
1160
1160
  }, z.core.$strict>;
1161
1161
  limits: z.ZodObject<{
@@ -1175,8 +1175,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
1175
1175
  modelCalls: z.ZodNumber;
1176
1176
  costUsdNanos: z.ZodNumber;
1177
1177
  costProvenance: z.ZodEnum<{
1178
- estimated: "estimated";
1179
1178
  observed: "observed";
1179
+ estimated: "estimated";
1180
1180
  }>;
1181
1181
  }, z.core.$strict>;
1182
1182
  trace: z.ZodObject<{
@@ -1242,8 +1242,8 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
1242
1242
  modelCalls: z.ZodNumber;
1243
1243
  costUsdNanos: z.ZodNumber;
1244
1244
  costProvenance: z.ZodEnum<{
1245
- estimated: "estimated";
1246
1245
  observed: "observed";
1246
+ estimated: "estimated";
1247
1247
  }>;
1248
1248
  }, z.core.$strict>;
1249
1249
  score: z.ZodNumber;
@@ -114,21 +114,13 @@ export interface AgentProfileResources {
114
114
  */
115
115
  export declare const REASONING_EFFORTS: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "ultracode"];
116
116
  export type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
117
- /**
118
- * Model selection hints for backends.
119
- */
117
+ /** Model selection hints for backends. */
120
118
  export interface AgentProfileModelHints {
121
- /**
122
- * Preferred default model (format depends on backend, commonly "provider/model").
123
- */
119
+ /** Preferred default model, commonly provider/model. */
124
120
  default?: string;
125
- /**
126
- * Preferred small/cheap model for lightweight work.
127
- */
121
+ /** Preferred small/cheap model for lightweight work. */
128
122
  small?: string;
129
- /**
130
- * Optional provider preference hint.
131
- */
123
+ /** Optional provider preference hint. */
132
124
  provider?: string;
133
125
  /**
134
126
  * Reasoning/thinking effort hint — a first-class, portable model dimension (not buried in
@@ -137,25 +129,13 @@ export interface AgentProfileModelHints {
137
129
  * This is a quality dial, not a spend limit. It never bounds token count.
138
130
  */
139
131
  reasoningEffort?: ReasoningEffort;
140
- /**
141
- * Maximum visible answer tokens a backend may bill for one completion.
142
- * A positive integer. Independent of the reasoning and total ceilings.
143
- */
132
+ /** Positive maximum billed visible answer tokens per completion, independent of reasoning/total ceilings. */
144
133
  maxVisibleOutputTokens?: number;
145
- /**
146
- * Maximum hidden reasoning tokens a backend may bill for one completion.
147
- * A positive integer, separate from visible answer tokens.
148
- */
134
+ /** Positive maximum billed hidden reasoning tokens per completion, separate from visible answer tokens. */
149
135
  maxReasoningTokens?: number;
150
- /**
151
- * Maximum total billed completion tokens for visible answer and hidden
152
- * reasoning tokens together. A positive integer. When it is set with either
153
- * single ceiling, that single ceiling must not exceed it.
154
- */
136
+ /** Positive total ceiling for billed visible/hidden completion tokens; neither individual ceiling may exceed it. */
155
137
  maxTotalOutputTokens?: number;
156
- /**
157
- * Backend-agnostic model metadata/hints.
158
- */
138
+ /** Backend-agnostic model metadata/hints. */
159
139
  metadata?: Record<string, unknown>;
160
140
  }
161
141
  /** An authored subscription choice. The executor resolves account availability at run time. */
@@ -166,6 +146,8 @@ export interface AgentProfileSeat {
166
146
  provider: string;
167
147
  /** Exact model requested from this provider. */
168
148
  model: string;
149
+ /** Override profile.model.reasoningEffort for this stage; omission inherits, none disables thinking. */
150
+ reasoningEffort?: ReasoningEffort;
169
151
  /** Select all eligible accounts in account-manager order, or one named account. */
170
152
  selector: {
171
153
  kind: "all-eligible";
@@ -81,12 +81,12 @@ export type AgentWorkspaceLeaseRecord = WithDigest<AgentWorkspaceLeaseRecordMate
81
81
  export type AgentWorkspaceSealedLeaseRecord = WithDigest<AgentWorkspaceSealedLeaseRecordMaterial>;
82
82
  export type AgentWorkspaceExecutionBoundLeaseRecord = WithDigest<AgentWorkspaceExecutionBoundLeaseRecordMaterial>;
83
83
  export declare const agentWorkspaceLeasePhaseSchema: z.ZodEnum<{
84
- "cleanup-failed": "cleanup-failed";
85
84
  "copy-ready": "copy-ready";
86
- destroyed: "destroyed";
87
- destroying: "destroying";
88
- "execution-bound": "execution-bound";
89
85
  "workspace-sealed": "workspace-sealed";
86
+ "execution-bound": "execution-bound";
87
+ destroying: "destroying";
88
+ "cleanup-failed": "cleanup-failed";
89
+ destroyed: "destroyed";
90
90
  }>;
91
91
  export declare const agentWorkspaceAllocationIdentitySchema: z.ZodObject<{
92
92
  provider: z.ZodString;