@sema-agent/core 7.32.1 → 7.33.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.
- package/CHANGELOG.md +27 -0
- package/dist/brain/anthropic.d.ts +1 -1
- package/dist/brain/anthropic.js +4 -1
- package/dist/brain/open-responses.d.ts +2 -1
- package/dist/brain/open-responses.js +4 -1
- package/dist/brain/openai.d.ts +2 -1
- package/dist/brain/openai.js +4 -1
- package/dist/brain/stream-engine.d.ts +8 -7
- package/dist/brain/stream-engine.js +111 -44
- package/dist/brain/timeout.d.ts +112 -53
- package/dist/brain/timeout.js +39 -5
- package/dist/brain/transport.d.ts +13 -0
- package/dist/brain/transport.js +62 -0
- package/dist/core/runner/prepare-task.js +2 -2
- package/dist/core/task-event.d.ts +7 -5
- package/dist/core/task-registry.d.ts +1 -7
- package/dist/core/task-registry.js +0 -9
- package/dist/engine/llm/types.d.ts +5 -5
- package/dist/orchestration/workflow.d.ts +4 -4
- package/dist/orchestration/workflow.js +2 -2
- package/package.json +6 -3
- package/wire-changes/core@7.33.0.json +351 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"version": "7.33.0",
|
|
4
|
+
"from": "a36eb21ebe39f5191f30102623e1570c3eb77f41",
|
|
5
|
+
"to": "v7.33.0",
|
|
6
|
+
"added": [],
|
|
7
|
+
"removed": [],
|
|
8
|
+
"changed": [],
|
|
9
|
+
"narrowed": [
|
|
10
|
+
{
|
|
11
|
+
"id": "F4",
|
|
12
|
+
"source": "behaviorFlips.summary",
|
|
13
|
+
"text": "Behaviour change with a NARROWING (#1121; +0 exports): ONE resolution chain for every model-call watchdog (`resolveWatchdogMs`): construction config (an explicit `0` is OFF) > per-call advisory > the engine default constant (`STALL_FIRST_BYTE_MS` 300 000 + the upload allowance / `STALL_FIRST_TOKEN_MS` 600 000 / `STALL_IDLE_MS` 300 000, F5). The old third level \"both absent ⇒ off\" is retired: a first-party brain built with no timeout fields and driven without the Runner's advisory (a bare SDK brain; compaction and side-query calls) now arms all three — a call that never gets headers ends after 301 s + a widened 601 s retry, one with no delta after 600 s, silence after a delta after 300 s (the same 300 s the transport's body clock used to give such a call, now the engine's own watchdog announcing a `stall` instead of a transport failure; an Anthropic `ping` is not a content delta, so with text already streamed the call is committed by tier A, \"Response stalled mid-stream. The response above may be incomplete.\"). `0` on a watchdog now means no bound at all on that segment, the transport's included (F2). NARROWING: such a brain whose fetch keeps no clock of its own (a `fetchImpl` that is not undici's, a test double) waited indefinitely on every segment and is now cut at those defaults; on Node's fetch it was bounded by the transport's 300 s clocks — the header cut reported `transport` and re-sent through the shared ladder up to `maxRetries` times — and is now bounded by the engine's (headers 301 s + one widened 601 s retry; first token 600 s, wider; idle 300 s, the same bound under a new announcer). WHO IS HURT: a deployment that constructed a first-party brain with no timeout fields and relied on it having none. COMPENSATION: `0` on the field it wants off, or a larger value."
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"closedSetMembers": [],
|
|
17
|
+
"closedSetsUnreadable": [],
|
|
18
|
+
"typeKeys": [
|
|
19
|
+
{
|
|
20
|
+
"type": "AnthropicBrainConfig",
|
|
21
|
+
"at": [
|
|
22
|
+
"src/brain/anthropic.ts:25"
|
|
23
|
+
],
|
|
24
|
+
"added": [
|
|
25
|
+
"firstByteTimeoutMs"
|
|
26
|
+
],
|
|
27
|
+
"addedDetail": [
|
|
28
|
+
{
|
|
29
|
+
"key": "firstByteTimeoutMs",
|
|
30
|
+
"optional": true
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"addedRequired": [],
|
|
34
|
+
"removed": [
|
|
35
|
+
"connectTimeoutMs"
|
|
36
|
+
],
|
|
37
|
+
"breaking": true,
|
|
38
|
+
"criteriaCovered": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "BrainTimeoutConfig",
|
|
42
|
+
"at": [
|
|
43
|
+
"src/brain/timeout.ts:166"
|
|
44
|
+
],
|
|
45
|
+
"added": [
|
|
46
|
+
"firstByteTimeoutMs"
|
|
47
|
+
],
|
|
48
|
+
"addedDetail": [
|
|
49
|
+
{
|
|
50
|
+
"key": "firstByteTimeoutMs",
|
|
51
|
+
"optional": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"addedRequired": [],
|
|
55
|
+
"removed": [
|
|
56
|
+
"connectTimeoutMs"
|
|
57
|
+
],
|
|
58
|
+
"breaking": true,
|
|
59
|
+
"criteriaCovered": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "OpenAIBrainConfig",
|
|
63
|
+
"at": [
|
|
64
|
+
"src/brain/openai.ts:27"
|
|
65
|
+
],
|
|
66
|
+
"added": [
|
|
67
|
+
"firstByteTimeoutMs"
|
|
68
|
+
],
|
|
69
|
+
"addedDetail": [
|
|
70
|
+
{
|
|
71
|
+
"key": "firstByteTimeoutMs",
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"addedRequired": [],
|
|
76
|
+
"removed": [
|
|
77
|
+
"connectTimeoutMs"
|
|
78
|
+
],
|
|
79
|
+
"breaking": true,
|
|
80
|
+
"criteriaCovered": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "OpenResponsesBrainConfig",
|
|
84
|
+
"at": [
|
|
85
|
+
"src/brain/open-responses.ts:101"
|
|
86
|
+
],
|
|
87
|
+
"added": [
|
|
88
|
+
"firstByteTimeoutMs"
|
|
89
|
+
],
|
|
90
|
+
"addedDetail": [
|
|
91
|
+
{
|
|
92
|
+
"key": "firstByteTimeoutMs",
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"addedRequired": [],
|
|
97
|
+
"removed": [
|
|
98
|
+
"connectTimeoutMs"
|
|
99
|
+
],
|
|
100
|
+
"breaking": true,
|
|
101
|
+
"criteriaCovered": true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "StallTimeouts",
|
|
105
|
+
"at": [
|
|
106
|
+
"src/engine/llm/types.ts:70"
|
|
107
|
+
],
|
|
108
|
+
"via": "CompleteSimpleFn.SimpleStreamOptions.StreamOptions.stallTimeouts",
|
|
109
|
+
"added": [
|
|
110
|
+
"firstByteMs"
|
|
111
|
+
],
|
|
112
|
+
"addedDetail": [
|
|
113
|
+
{
|
|
114
|
+
"key": "firstByteMs",
|
|
115
|
+
"optional": true
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"addedRequired": [],
|
|
119
|
+
"removed": [
|
|
120
|
+
"connectMs"
|
|
121
|
+
],
|
|
122
|
+
"breaking": true,
|
|
123
|
+
"criteriaCovered": false
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "StreamEngineConfig",
|
|
127
|
+
"at": [
|
|
128
|
+
"src/brain/stream-engine.ts:45"
|
|
129
|
+
],
|
|
130
|
+
"via": "AnthropicBrainConfig.StreamEngineConfig",
|
|
131
|
+
"added": [
|
|
132
|
+
"firstByteTimeoutMs"
|
|
133
|
+
],
|
|
134
|
+
"addedDetail": [
|
|
135
|
+
{
|
|
136
|
+
"key": "firstByteTimeoutMs",
|
|
137
|
+
"optional": true
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"addedRequired": [],
|
|
141
|
+
"removed": [
|
|
142
|
+
"connectTimeoutMs"
|
|
143
|
+
],
|
|
144
|
+
"breaking": true,
|
|
145
|
+
"criteriaCovered": false
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"typeKeysUnreadableArms": [],
|
|
149
|
+
"typeKeysFlattenedCount": 217,
|
|
150
|
+
"declarationMoves": [],
|
|
151
|
+
"mintMoves": [],
|
|
152
|
+
"criteriaObserves": [
|
|
153
|
+
{
|
|
154
|
+
"kind": "taskEventField",
|
|
155
|
+
"name": "status.attempt",
|
|
156
|
+
"assertions": [
|
|
157
|
+
"G1.b"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "taskEventField",
|
|
162
|
+
"name": "status.detail",
|
|
163
|
+
"assertions": [
|
|
164
|
+
"G1.a"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "taskEventField",
|
|
169
|
+
"name": "status.errClass",
|
|
170
|
+
"assertions": [
|
|
171
|
+
"G1.a"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "taskEventField",
|
|
176
|
+
"name": "status.maxRetries",
|
|
177
|
+
"assertions": [
|
|
178
|
+
"G1.b"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"kind": "taskEventField",
|
|
183
|
+
"name": "status.timeoutMs",
|
|
184
|
+
"assertions": [
|
|
185
|
+
"G1.a",
|
|
186
|
+
"G2.a"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "typeMember",
|
|
191
|
+
"name": "AnthropicBrainConfig.firstByteTimeoutMs",
|
|
192
|
+
"assertions": [
|
|
193
|
+
"G3.a"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "typeMember",
|
|
198
|
+
"name": "AssistantMessage.errorMessage",
|
|
199
|
+
"assertions": [
|
|
200
|
+
"G3.a",
|
|
201
|
+
"G4.a"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "typeMember",
|
|
206
|
+
"name": "AssistantMessage.partialFinalized",
|
|
207
|
+
"assertions": [
|
|
208
|
+
"G4.c"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "typeMember",
|
|
213
|
+
"name": "AssistantMessage.stopReason",
|
|
214
|
+
"assertions": [
|
|
215
|
+
"G3.a",
|
|
216
|
+
"G4.a",
|
|
217
|
+
"G4.b"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "typeMember",
|
|
222
|
+
"name": "Brain.stream",
|
|
223
|
+
"assertions": [
|
|
224
|
+
"G3.a",
|
|
225
|
+
"G4.a",
|
|
226
|
+
"G4.c"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "typeMember",
|
|
231
|
+
"name": "BrainTimeoutConfig.firstByteTimeoutMs",
|
|
232
|
+
"assertions": [
|
|
233
|
+
"G1.a",
|
|
234
|
+
"G2.a",
|
|
235
|
+
"G3.a",
|
|
236
|
+
"G4.a",
|
|
237
|
+
"G4.b"
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "typeMember",
|
|
242
|
+
"name": "BrainTimeoutConfig.firstTokenTimeoutMs",
|
|
243
|
+
"assertions": [
|
|
244
|
+
"G2.a",
|
|
245
|
+
"G4.a",
|
|
246
|
+
"G4.b"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"kind": "typeMember",
|
|
251
|
+
"name": "BrainTimeoutConfig.idleTimeoutMs",
|
|
252
|
+
"assertions": [
|
|
253
|
+
"G4.b",
|
|
254
|
+
"G4.c"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "typeMember",
|
|
259
|
+
"name": "OpenAIBrainConfig.fetchImpl",
|
|
260
|
+
"assertions": [
|
|
261
|
+
"G1.b",
|
|
262
|
+
"G2.a",
|
|
263
|
+
"G2.b"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"kind": "typeMember",
|
|
268
|
+
"name": "OpenAIBrainConfig.firstByteTimeoutMs",
|
|
269
|
+
"assertions": [
|
|
270
|
+
"G1.a"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"kind": "typeMember",
|
|
275
|
+
"name": "OpenAIBrainConfig.maxRetries",
|
|
276
|
+
"assertions": [
|
|
277
|
+
"G1.b"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"kind": "typeMember",
|
|
282
|
+
"name": "OpenResponsesBrainConfig.firstByteTimeoutMs",
|
|
283
|
+
"assertions": [
|
|
284
|
+
"G3.a"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "typeMember",
|
|
289
|
+
"name": "RunWorkflowOptions.stallMs",
|
|
290
|
+
"assertions": [
|
|
291
|
+
"G5.a"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"kind": "typeMember",
|
|
296
|
+
"name": "RunWorkflowOptions.timers",
|
|
297
|
+
"assertions": [
|
|
298
|
+
"G5.a"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "typeMember",
|
|
303
|
+
"name": "TaskRegistry.list",
|
|
304
|
+
"assertions": [
|
|
305
|
+
"G3.b"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "typeMember",
|
|
310
|
+
"name": "TaskRegistry.runningShellIds",
|
|
311
|
+
"assertions": [
|
|
312
|
+
"G3.b"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"kind": "typeMember",
|
|
317
|
+
"name": "TaskResult.result",
|
|
318
|
+
"assertions": [
|
|
319
|
+
"G2.b",
|
|
320
|
+
"G4.c"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"kind": "typeMember",
|
|
325
|
+
"name": "TaskResult.terminal",
|
|
326
|
+
"assertions": [
|
|
327
|
+
"G1.a",
|
|
328
|
+
"G1.b",
|
|
329
|
+
"G2.a",
|
|
330
|
+
"G2.b",
|
|
331
|
+
"G4.c"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"consumersHint": {
|
|
336
|
+
"cli": [],
|
|
337
|
+
"server": [],
|
|
338
|
+
"sdk": [],
|
|
339
|
+
"note": "scanned cli@4e593722 server@907e1c76 sdk@4fe310e — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it. Ledger files (**/docs/core-consumption/**, **/docs/wire-consumption/**, **/*LEDGER*.json) are not evidence of use — server: 4 name(s) matched ONLY in bookkeeping files and were set aside (AnthropicBrainConfig, BrainTimeoutConfig, OpenAIBrainConfig, OpenResponsesBrainConfig)"
|
|
340
|
+
},
|
|
341
|
+
"breakingCount": 6,
|
|
342
|
+
"breakingItems": [
|
|
343
|
+
"type lost keys: AnthropicBrainConfig -connectTimeoutMs",
|
|
344
|
+
"type lost keys: BrainTimeoutConfig -connectTimeoutMs",
|
|
345
|
+
"type lost keys: OpenAIBrainConfig -connectTimeoutMs",
|
|
346
|
+
"type lost keys: OpenResponsesBrainConfig -connectTimeoutMs",
|
|
347
|
+
"type lost keys: StallTimeouts -connectMs",
|
|
348
|
+
"type lost keys: StreamEngineConfig -connectTimeoutMs"
|
|
349
|
+
],
|
|
350
|
+
"toResolvedAt": "0ce5bb4b0d729b70f84bdd3ed2ea93bbdaedb68a"
|
|
351
|
+
}
|