[bug]: Align Graph.add_edge and validate_self collector type validation
维护者通常 5 天内回复
@JPPhoto 已经在做这个了。
开始于 2026年9月26日。
评估
这个 Issue 还没有评估数据。
描述
Is there an existing issue for this problem?
- I have searched the existing issues and found no duplicate.
Install method
Manual (in-process graph test; no server installation used)
Describe your environment
- Operating system: Linux
- GPU vendor: None (CPU; not involved)
- Version number: main @ 13aff5c (in-process review reproduction)
What happened
Graph.add_edge() and Graph.validate_self() do not enforce the same collector type invariants. Some collector changes can be accepted while editing, then rejected only when the full graph is validated. Review reproductions include a collector feeding an If branch and a related Collect -> Iterate mismatch.
What you expected to happen
Define which collector and downstream type invariants must hold after each add_edge() call, and make mutation-time validation and validate_self() follow that contract without rejecting unrelated incomplete nodes.
How to reproduce the problem
- Build a graph with a collector connected to an If branch and an otherwise incomplete opposite branch.
- Add item/collection edges that produce a type mismatch through that branch.
- Compare whether add_edge() accepts the edit with whether validate_self() accepts the resulting graph.
- Repeat for the related Collect -> Iterate topology.
Additional context
This is a broader graph-editing contract question, separate from PR 343's targeted revalidation when an If branch becomes complete. Existing incomplete-node workflows must remain editable.
- 主要语言
- Python
- 星标
- 28.3k
- 派生
- 3k
- 平均合并
- 6 天 3 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
invoke-ai/InvokeAI 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 5 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
invoke-ai/InvokeAI#9608 · 3 条评论 ·
维护者通常 5 天内回复
-
[bug]: Nested Iterate execution mixes values across outer iterations可能已有人在做 @JPPhoto 于 5 天前认领。 未关闭bug
invoke-ai/InvokeAI#9609 · 已指派 1 人 ·
维护者通常 5 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
维护者通常 5 天内回复
-
[bug]: 6.14.1 regression with `pytorch_cuda_alloc_conf: backend:cudaMallocAsync` — Z-Image bf16 + LoRA takes ~30 min whenever the transformer is (re)loaded (VRAM overflows into Windows shared memory)可能已有人在做 @lstein 于 7 天前认领。 未关闭
invoke-ai/InvokeAI#9597 · 2 条评论 · 已指派 1 人 ·
维护者通常 5 天内回复
查看 invoke-ai/InvokeAI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
BasedHardware/omi#20271 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 92/100
openai/openai-cookbook#3153 ·
维护者通常 1 天内回复
-
cvss-severity:high devguard l3montree-cybersecurity/devguard/devguard pkg:golang/github.com/l3montree-dev/devguard risk:low state:open
难度 2/5 1-3 小时 新手友好度 65/100
l3montree-dev/devguard#3146 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 76/100
open-webui/open-webui#31849 · 2 条评论 ·
维护者通常 1 天内回复