Commit 560fdf1
committed
fix(spec): fallbackNodeId 墓碑指向真正路由 fault 的键 (#6094)
`flow.errorHandling.fallbackNodeId` 的退役迁移文案把 fault 边写成
「an edge with condition 'fault'」。但 `condition` 是返回 boolean 的 CEL
谓词(ExpressionInputSchema),fault 路由在 `type`
(z.enum(['default','fault','conditional','back']))。
照原文案写 `{ source, target, condition: 'fault' }` 能 parse 通过 ——
`condition` 接受任意表达式字符串 —— 但得到的是一条普通边,不是 fault 边。
于是墓碑用一个静默失效的键换掉了另一个:作者删掉一个本就不存在的 fallback,
再画一条并非 fault 的「fault 边」。
仓库别处已写对(flows.mdx:869「type: 'fault' is what routes — a label is
not」),全树其余提法均为 `type: 'fault'`,此处是唯一一处走样。末句
「draw a fault edge from the failing node to the handler node instead」
本就正确,保持不变。
仅文案,无 schema / 校验 / 运行时行为变化。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011M7UwH25Unfi73UHim7ajY1 parent 6131d90 commit 560fdf1
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| |||
0 commit comments