Skip to content

fix(reconcile): fix race condition breaking auto-resume edge detection#26

Merged
genisd merged 4 commits intogynzyfrom
fix/cicd-to-llm-feedback-loop
Apr 21, 2026
Merged

fix(reconcile): fix race condition breaking auto-resume edge detection#26
genisd merged 4 commits intogynzyfrom
fix/cicd-to-llm-feedback-loop

Conversation

@genisd
Copy link
Copy Markdown
Member

@genisd genisd commented Apr 21, 2026

PR watcher was updating prChecksStatus in DB before enqueueing reconcile, so by the time the reconciler ran, prev.checks already equaled the new status and the edge transition was never detected.

  • Remove prChecksStatus/prReviewStatus/prState updates from pr-watcher
  • Add patchPrStatusFields() helper to executor, called after edge-triggered actions (resumeAgent, launchReview, PR-related transitions)
  • Reconciler now correctly detects edges: reads old value from DB, compares to fresh GitHub status, fires action, then patches DB

genisd and others added 2 commits April 21, 2026 12:13
PR watcher was updating prChecksStatus in DB before enqueueing reconcile,
so by the time the reconciler ran, prev.checks already equaled the new
status and the edge transition was never detected.

- Remove prChecksStatus/prReviewStatus/prState updates from pr-watcher
- Add patchPrStatusFields() helper to executor, called after edge-triggered
  actions (resumeAgent, launchReview, PR-related transitions)
- Reconciler now correctly detects edges: reads old value from DB,
  compares to fresh GitHub status, fires action, then patches DB
@gynzy-virko gynzy-virko requested a deployment to prod-skup-merge April 21, 2026 10:42 Abandoned
@genisd genisd merged commit 64cad1b into gynzy Apr 21, 2026
15 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.

2 participants