Files
Agent-System/.doc/ops/short-term/2026-09-20-rdev-seed-hotfix.md
T
weichenandCursor badfc19812 docs(ops): claim rdev workflow seed hotfix
dev 库 rdev 停在 retired,test 库因 publishedBy 外键失败未发布研发工作流。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 14:03:30 +00:00

1.7 KiB
Raw Blame History

title, status, created, updated, owner, branch, worktree, mutex
title status created updated owner branch worktree mutex
修复工作流种子:publishedBy 外键与 retired 不自愈 in_progress 2026-09-20 2026-09-20 Cursor fix/workflow-seed-bootstrap-2026-09-20 - workflow-def

修复工作流种子:publishedBy 外键与 retired 不自愈

目标

dev 与 test 启动后,正式工作流目录包含「研发设计控制流程」(rdev),且数据库 status=active、已发布版本外键有效。

范围

  • BootstrapSeeds:publishedBy 用户不存在时回落到库内最小 id;无用户则跳过并记日志
  • UpsertPublishedSeed / RetireNonOfficialDefinitions:白名单 key 幂等更新时把 status 恢复为 active
  • bizdev 启动 seed 失败改为 slog.Warn,不再静默丢弃

非目标

  • 不改 rdev manifest / 60 份模板内容
  • 不改 production_ready
  • 不启用 FAV / 语义摘要 REPLACE

步骤

  1. 从 dev 切 fix/workflow-seed-bootstrap-2026-09-20 并登记认领
  2. 修复 seed actor 回落与 retired 自愈
  3. go vet / go test -short / PG 集成
  4. 合入 dev 后 rebuild;晋升 test(rc-v1.0.0-beta.7)并 rebuild

验收标准

  • dev/test catalog 均含 rdev,DB status=active
  • test 库 workflow_versions 无 created_by 外键错误
  • go vet / go test -short 通过

相关链接

  • Checklist: -
  • Handoff: -
  • Test report: .doc/test-reports/2026-09-20-rdev-seed-hotfix-test-report.md

证据 / 备注

  • test PG 2026-09-20 09:49:51:workflow_versions_created_by_fkey(publishedBy=1,test 用户最小 id=4)
  • dev 库 rdev v3 status=retired,project_selectable=true(元数据更新不恢复 status)