fix: worker config on workflow blocks - #426
Merged
Merged
Conversation
Blocks previously could set worker_type but not worker_config, so authors
needing a per-block timeout had to inline low-level nodes — and models kept
reaching for the field anyway (fail-closed rejection with no actionable
hint). Accept it explicitly:
- WorkflowBlock gains optional worker_config { timeout_ms }; compilation
threads it through every expanded node, overriding node_defaults
- FIELD_DRIFT_HINTS covers bare timeout/timeouts/timeout_ms; the drift-hint
field list now includes worker_config
- draft-config description and guide(blocks) document the capability
- strict unknown-key parsing stays fail-closed
Tests: block-level value lands on compiled nodes, node_defaults fallback,
block-over-defaults precedence, unknown keys still rejected with hints.LeXwDeX
marked this pull request as ready for review
August 24, 2026 06:09
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes#425
Why
模型在用 workflow 工具组合 blocks 图时因 schema 词汇不对称误传块级
worker_config被 fail-closed 拒绝。按用户决策显式接受该字段(B)并补齐诊断与文档(A')。What changed
worker_config { timeout_ms },编译映射进节点且覆盖 node_defaultsEvidence
Checklist
specgit finishexits 0.