Skip to content

fix: enforce parent-child issue state constraint#5616

Open
josh87523 wants to merge 1 commit into
multica-ai:mainfrom
josh87523:codex/multica-parent-child-state-constraint-20260718
Open

fix: enforce parent-child issue state constraint#5616
josh87523 wants to merge 1 commit into
multica-ai:mainfrom
josh87523:codex/multica-parent-child-state-constraint-20260718

Conversation

@josh87523

Copy link
Copy Markdown

解决的问题

父任务可能在仍有直接或间接未完成后代时被标记完成;不同写入口和并发操作也可能造成矛盾树。

改动

  • 在任务表写入边界加入递归父子状态约束与稳定锁集。
  • 为 Create / Update / BatchUpdate 返回安全的 409 冲突。
  • 批量更新在同一事务内执行,失败不留下部分写入、事件或自动化副作用。
  • GitHub 自动完成与任务恢复被拒时记录结构化 operator 日志。

已验证(仅本地)

  • TestParentStateConstraint*:递归、显式重开、批量、并发和直接写入。
  • 相关 handler 回归与 go vet
  • 三轮独立只读审查;最后一轮通过。

尚未证明

PR/CI、canonical main、Promote、运行版本,以及 UI/API/Workspace 自动化真实读回。

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the IndexLabs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant