Skip to content

Bind plan mutations to one PM run - #10

Merged
JulioMCruz merged 1 commit into
mainfrom
agent/fix-pm-coordination
Jul 22, 2026
Merged

Bind plan mutations to one PM run#10
JulioMCruz merged 1 commit into
mainfrom
agent/fix-pm-coordination

Conversation

@JulioMCruz

Copy link
Copy Markdown
Contributor

What changed

  • Validate a unique planningRunId across plan document, group, task, and proposal mutations.
  • Reject missing or stale run tokens while planning.
  • Block direct createTask calls throughout approval-controlled workflow phases.

Why

A delayed or concurrent PM turn could mutate a newer plan or recreate tasks after approval. Only server-side approval materialization may create the reviewed task set.

Validation

  • Full suite: 45/45
  • Targeted planning tests: 13/13
  • TypeScript build: PASS

Deployment order

Deploy first so tools accept planningRunId before the API sends it.

@JulioMCruz
JulioMCruz marked this pull request as ready for review July 22, 2026 17:24
@JulioMCruz
JulioMCruz merged commit a9fe124 into main Jul 22, 2026
2 checks passed
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