@tansr/protocol 0.3.0 → 0.4.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/dist/events.d.ts +25 -19
- package/dist/events.js +10 -3
- package/dist/headless.d.ts +3 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare const EventEnvelopeSchema: z.ZodObject<{
|
|
|
39
39
|
/** 事件包络(EventEnvelopeSchema 推导)。 */
|
|
40
40
|
export type EventEnvelope = z.infer<typeof EventEnvelopeSchema>;
|
|
41
41
|
/** 一轮查询的终止原因词表:正常完成、各类上限触顶、模型错误、中断 / 超时 / 关停、hook 阻断等。 */
|
|
42
|
-
export declare const TerminalReasonSchema: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>;
|
|
42
|
+
export declare const TerminalReasonSchema: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>;
|
|
43
43
|
/** 一轮查询的终止原因(TerminalReasonSchema 推导)。 */
|
|
44
44
|
export type TerminalReason = z.infer<typeof TerminalReasonSchema>;
|
|
45
45
|
/**
|
|
@@ -330,22 +330,22 @@ export declare const EventBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
330
330
|
type: "turn.started";
|
|
331
331
|
}>, z.ZodObject<{
|
|
332
332
|
type: z.ZodLiteral<"turn.completed">;
|
|
333
|
-
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>;
|
|
333
|
+
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
type: "turn.completed";
|
|
336
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
336
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
337
337
|
}, {
|
|
338
338
|
type: "turn.completed";
|
|
339
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
339
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
340
340
|
}>, z.ZodObject<{
|
|
341
341
|
type: z.ZodLiteral<"turn.aborted">;
|
|
342
|
-
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>;
|
|
342
|
+
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
type: "turn.aborted";
|
|
345
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
345
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
346
346
|
}, {
|
|
347
347
|
type: "turn.aborted";
|
|
348
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
348
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
349
349
|
}>, z.ZodObject<{
|
|
350
350
|
type: z.ZodLiteral<"turn.error">;
|
|
351
351
|
scope: z.ZodString;
|
|
@@ -363,9 +363,12 @@ export declare const EventBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
363
363
|
* 结构化事实位(contract-v0.26;加法可选键):scope='model' 时
|
|
364
364
|
* = IR error 事件 `detail` 透传(providers 自服务端信封带出的机器可判事实;首个取值
|
|
365
365
|
* `{ scope: 'plan' }` = 平台套餐配额拒绝,与 HTTP 面 `error.detail.scope`
|
|
366
|
-
* 同键同值)
|
|
367
|
-
* `
|
|
368
|
-
*
|
|
366
|
+
* 同键同值);scope='kernel' 且 errorKind='overloaded' 时(contract-v0.31 / P-K17-4)
|
|
367
|
+
* = 轮内确定未执行的容量拒绝事实(RFC-CONC-1 登记白名单 `{ scope, reason }`,如
|
|
368
|
+
* `{ scope: 'storage', reason: 'storage_capacity_exceeded' }`)。三端 reducer 归约:
|
|
369
|
+
* `recoverable:true` → `SessionNotice.detail`,失败形 → `ErrorView.detail`;端侧
|
|
370
|
+
* `ErrorEnvelope.scope` 取值器同一读法。缺席 = 无附加事实(既有事件体字节零变)。
|
|
371
|
+
* 值恒不含 endUser 身份 / 令牌 / 内部 id。
|
|
369
372
|
*/
|
|
370
373
|
detail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
371
374
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1378,22 +1381,22 @@ export declare const KernelEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1378
1381
|
type: "turn.started";
|
|
1379
1382
|
}>, z.ZodObject<{
|
|
1380
1383
|
type: z.ZodLiteral<"turn.completed">;
|
|
1381
|
-
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>;
|
|
1384
|
+
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>;
|
|
1382
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1383
1386
|
type: "turn.completed";
|
|
1384
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
1387
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
1385
1388
|
}, {
|
|
1386
1389
|
type: "turn.completed";
|
|
1387
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
1390
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
1388
1391
|
}>, z.ZodObject<{
|
|
1389
1392
|
type: z.ZodLiteral<"turn.aborted">;
|
|
1390
|
-
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>;
|
|
1393
|
+
reason: z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>;
|
|
1391
1394
|
}, "strip", z.ZodTypeAny, {
|
|
1392
1395
|
type: "turn.aborted";
|
|
1393
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
1396
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
1394
1397
|
}, {
|
|
1395
1398
|
type: "turn.aborted";
|
|
1396
|
-
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone";
|
|
1399
|
+
reason: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded";
|
|
1397
1400
|
}>, z.ZodObject<{
|
|
1398
1401
|
type: z.ZodLiteral<"turn.error">;
|
|
1399
1402
|
scope: z.ZodString;
|
|
@@ -1411,9 +1414,12 @@ export declare const KernelEventSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
1411
1414
|
* 结构化事实位(contract-v0.26;加法可选键):scope='model' 时
|
|
1412
1415
|
* = IR error 事件 `detail` 透传(providers 自服务端信封带出的机器可判事实;首个取值
|
|
1413
1416
|
* `{ scope: 'plan' }` = 平台套餐配额拒绝,与 HTTP 面 `error.detail.scope`
|
|
1414
|
-
* 同键同值)
|
|
1415
|
-
* `
|
|
1416
|
-
*
|
|
1417
|
+
* 同键同值);scope='kernel' 且 errorKind='overloaded' 时(contract-v0.31 / P-K17-4)
|
|
1418
|
+
* = 轮内确定未执行的容量拒绝事实(RFC-CONC-1 登记白名单 `{ scope, reason }`,如
|
|
1419
|
+
* `{ scope: 'storage', reason: 'storage_capacity_exceeded' }`)。三端 reducer 归约:
|
|
1420
|
+
* `recoverable:true` → `SessionNotice.detail`,失败形 → `ErrorView.detail`;端侧
|
|
1421
|
+
* `ErrorEnvelope.scope` 取值器同一读法。缺席 = 无附加事实(既有事件体字节零变)。
|
|
1422
|
+
* 值恒不含 endUser 身份 / 令牌 / 内部 id。
|
|
1417
1423
|
*/
|
|
1418
1424
|
detail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1419
1425
|
}, "strip", z.ZodTypeAny, {
|
package/dist/events.js
CHANGED
|
@@ -58,6 +58,10 @@ export const TerminalReasonSchema = z.enum([
|
|
|
58
58
|
// 孤儿策略 / 宿主 onSubscribersGone 钩子裁 interrupt);签发方为驱动层按
|
|
59
59
|
// 中止来源标记,内核 abortReason() 恒不主动产出;用户 ④interrupt 仍走 aborted_*
|
|
60
60
|
'client_gone',
|
|
61
|
+
// contract-v0.31(RFC P-K17-4):轮内确定未执行的容量拒绝专属值——与请求级 503
|
|
62
|
+
// overloaded 同源,细因(RFC-CONC-1 白名单 scope/reason)放前置 turn.error.detail;
|
|
63
|
+
// 签发方唯一 = kernel run-query(beforeModel 失败与 events() 隔离层)
|
|
64
|
+
'overloaded',
|
|
61
65
|
]);
|
|
62
66
|
/**
|
|
63
67
|
* tool.failed 的错误分类(contract-v0.2:由宽 string 收窄)。
|
|
@@ -300,9 +304,12 @@ export const EventBodySchema = z.discriminatedUnion('type', [
|
|
|
300
304
|
* 结构化事实位(contract-v0.26;加法可选键):scope='model' 时
|
|
301
305
|
* = IR error 事件 `detail` 透传(providers 自服务端信封带出的机器可判事实;首个取值
|
|
302
306
|
* `{ scope: 'plan' }` = 平台套餐配额拒绝,与 HTTP 面 `error.detail.scope`
|
|
303
|
-
* 同键同值)
|
|
304
|
-
* `
|
|
305
|
-
*
|
|
307
|
+
* 同键同值);scope='kernel' 且 errorKind='overloaded' 时(contract-v0.31 / P-K17-4)
|
|
308
|
+
* = 轮内确定未执行的容量拒绝事实(RFC-CONC-1 登记白名单 `{ scope, reason }`,如
|
|
309
|
+
* `{ scope: 'storage', reason: 'storage_capacity_exceeded' }`)。三端 reducer 归约:
|
|
310
|
+
* `recoverable:true` → `SessionNotice.detail`,失败形 → `ErrorView.detail`;端侧
|
|
311
|
+
* `ErrorEnvelope.scope` 取值器同一读法。缺席 = 无附加事实(既有事件体字节零变)。
|
|
312
|
+
* 值恒不含 endUser 身份 / 令牌 / 内部 id。
|
|
306
313
|
*/
|
|
307
314
|
detail: z.record(z.string(), z.unknown()).optional(),
|
|
308
315
|
}),
|
package/dist/headless.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const HeadlessResultRecordSchema: z.ZodObject<{
|
|
|
27
27
|
*/
|
|
28
28
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
29
29
|
/** 终止原因;内部异常路径(无终态)缺省 */
|
|
30
|
-
reason: z.ZodOptional<z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone"]>>;
|
|
30
|
+
reason: z.ZodOptional<z.ZodEnum<["completed", "blocking_limit", "aborted_streaming", "aborted_tools", "model_error", "prompt_too_long", "max_turns", "max_tool_rounds", "injection_limit", "hook_stopped", "structured_output", "timeout", "shutdown", "budget_exceeded", "stop_hook_limit", "internal_error", "client_gone", "overloaded"]>>;
|
|
31
31
|
/** 进程退出码;词表见头注(cli exit-code.ts 为映射事实源) */
|
|
32
32
|
exitCode: z.ZodNumber;
|
|
33
33
|
/** 全程 usage 聚合;无 cost.usage.updated 事件时缺省 */
|
|
@@ -76,7 +76,7 @@ export declare const HeadlessResultRecordSchema: z.ZodObject<{
|
|
|
76
76
|
} | undefined;
|
|
77
77
|
error?: string | undefined;
|
|
78
78
|
sessionId?: string | undefined;
|
|
79
|
-
reason?: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | undefined;
|
|
79
|
+
reason?: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded" | undefined;
|
|
80
80
|
}, {
|
|
81
81
|
type: "result";
|
|
82
82
|
exitCode: number;
|
|
@@ -92,6 +92,6 @@ export declare const HeadlessResultRecordSchema: z.ZodObject<{
|
|
|
92
92
|
} | undefined;
|
|
93
93
|
error?: string | undefined;
|
|
94
94
|
sessionId?: string | undefined;
|
|
95
|
-
reason?: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | undefined;
|
|
95
|
+
reason?: "completed" | "blocking_limit" | "aborted_streaming" | "aborted_tools" | "model_error" | "prompt_too_long" | "max_turns" | "max_tool_rounds" | "injection_limit" | "hook_stopped" | "structured_output" | "timeout" | "shutdown" | "budget_exceeded" | "stop_hook_limit" | "internal_error" | "client_gone" | "overloaded" | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
export type HeadlessResultRecord = z.infer<typeof HeadlessResultRecordSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -507,6 +507,10 @@
|
|
|
507
507
|
* ColdStorageManifest 为新共同读取入口。SegmentManifest 继续仅表示格式1—4,不改变旧写者;
|
|
508
508
|
* 最高支持版本5与原段合同最高版本4分离。原 owner/lease 不成为恢复授权,wire 包络保持 v0。
|
|
509
509
|
* 新 schema/golden 与出口同步冻结;本笔不发布,后续发布须符合0.x minor门。
|
|
510
|
+
* - contract-v0.31(CONC-01 P-K17-4,2026-11-09 用户会签、2026-11-28 实施;材料:doc/rfc/CONC-01-轮内容量拒绝终止原因草案-2026-11-09.md):
|
|
511
|
+
* ① TerminalReason 加法增 'overloaded',用于轮内确定未执行的容量拒绝(签发方唯一 = kernel run-query);
|
|
512
|
+
* ② turn.error{scope:'kernel', errorKind:'overloaded', recoverable:false, detail:{scope,reason}} 复原既有可选位;
|
|
513
|
+
* ③ schema golden(kernel-event) 与协议导出快照同步再生,会话 MANIFEST / API manifest 随之 bump;不门控,不提前发布。
|
|
510
514
|
*/
|
|
511
515
|
/** contract-v0.28(MEDIA-03,用户授权 2026-09-14):tool_result.artifact 原值保全,
|
|
512
516
|
* 新产物受限 v1 分类;含扩展的存储格式提升 v2,旧 writer 拒绝写入。
|
package/dist/index.js
CHANGED
|
@@ -507,6 +507,10 @@
|
|
|
507
507
|
* ColdStorageManifest 为新共同读取入口。SegmentManifest 继续仅表示格式1—4,不改变旧写者;
|
|
508
508
|
* 最高支持版本5与原段合同最高版本4分离。原 owner/lease 不成为恢复授权,wire 包络保持 v0。
|
|
509
509
|
* 新 schema/golden 与出口同步冻结;本笔不发布,后续发布须符合0.x minor门。
|
|
510
|
+
* - contract-v0.31(CONC-01 P-K17-4,2026-11-09 用户会签、2026-11-28 实施;材料:doc/rfc/CONC-01-轮内容量拒绝终止原因草案-2026-11-09.md):
|
|
511
|
+
* ① TerminalReason 加法增 'overloaded',用于轮内确定未执行的容量拒绝(签发方唯一 = kernel run-query);
|
|
512
|
+
* ② turn.error{scope:'kernel', errorKind:'overloaded', recoverable:false, detail:{scope,reason}} 复原既有可选位;
|
|
513
|
+
* ③ schema golden(kernel-event) 与协议导出快照同步再生,会话 MANIFEST / API manifest 随之 bump;不门控,不提前发布。
|
|
510
514
|
*/
|
|
511
515
|
/** contract-v0.28(MEDIA-03,用户授权 2026-09-14):tool_result.artifact 原值保全,
|
|
512
516
|
* 新产物受限 v1 分类;含扩展的存储格式提升 v2,旧 writer 拒绝写入。
|