Skip to content

fix(planning): preserve approval task version - #74

Merged
mai1015 merged 1 commit into
mainfrom
fix/planning-approval-version-race
Sep 29, 2026
Merged

mai1015 merged 1 commit into
mainfrom
fix/planning-approval-version-race

Conversation

@mai1015

@mai1015 mai1015 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #70.

Both full Rust CI runs exposed a real race in approval-gated planning: Forge published the plan-review marker at task version N, then bumped the task to N+1 solely while retiring its private plan-cleanup marker. A human approving the freshly returned version could receive Db(VersionConflict).

This change retires that exact internal cleanup marker with an atomic key-level compare-and-remove that does not advance the public task version. It adds a focused regression and an Unreleased changelog entry.

Focused validation:

  • approval-gated planner completion and explicit approval
  • default auto-advancing planner completion
  • plan cleanup version regression
  • paused-project cleanup recovery
  • services library Clippy with warnings denied
  • cargo fmt and git diff checks

@mai1015
mai1015 merged commit 5fc28c1 into main Sep 29, 2026
10 checks passed
@mai1015
mai1015 deleted the fix/planning-approval-version-race branch September 29, 2026 14:35
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