[Bug]: 默认的SOP不进入下一个环节
Component / host
Platform — runner / sandbox
Edition
Platform
LoopForge version
loopforge:0.3.8
What happened?
Reproduction
默认的产品SOP流程不通,卡在了方案设计环节
Sanitized diagnostics
无
Safety checks
- [x] I removed credentials, private endpoints, internal identifiers, and personal data.
- [x] I searched existing issues for duplicates.
已查看截图但无法据此定位代码路径;运行详情里的节点状态、最后几条日志/报错、所用执行器与模型、是否每次复现,这些信息还缺(与 @fx-kurumi 之前的提问一致)。材料补齐后我们会对照代码复核是否复现及根因。
已复现并定位根因:internal/engine/node_execute.go 成功路径提交节点终态使用乐观锁(shouldCommitNodeOutcome 校验 Run.Generation),竞态下校验失败会静默跳过状态写入,但外层代码仍会继续发布 artifact.published 遥测,造成“日志显示完成、拓扑图仍运行中”的不一致,与分析一致。已在本地修复(提交前增加真正提交成功的判断,未提交成功时不再发布遥测/归档预览),go vet / go test ./internal/engine/... 均通过。修复 PR 因运行责任人 Git Token 推送权限问题暂未能推送,待权限恢复后补发 PR 链接。
Related: the root cause described in the 2026-11-13 analysis — the optimistic shouldCommitNodeOutcome check silently skipping the terminal write while the outer code still publishes artifact.published telemetry and archives the preview — is what #1184 fixes: the terminal node commit now goes through updateRunAtErr, a rejected write records a node.commit.failed error event and fails the node with the real cause, and artifact.published / preview archiving are skipped unless the state was actually stored. Since the local fix mentioned there could not be pushed, #1184 may be the way to land it.
补充一下上游状态:#1301 已合并,并已包含在 v0.4.3。它覆盖了这里排查到的终态写入失败:写入不成功会记录 node.commit.failed 并让节点报出实际原因,不再先发 artifact.published、却把节点留在运行中。
我核对了合并提交和发布标签,但没有重跑原帖的默认产品 SOP。若升级后仍卡在「方案设计」,可以贴该节点最后几条脱敏日志,尤其是有没有 node.commit.failed,以便区分同一条写入路径和其他卡点。