Skip to content

fix(merge-gate): re-poll UNKNOWN merge state before denying; document silent queue drops - #140

Merged
CybotTM merged 1 commit into
mainfrom
fix/merge-gate-unknown
Aug 5, 2026
Merged

fix(merge-gate): re-poll UNKNOWN merge state before denying; document silent queue drops#140
CybotTM merged 1 commit into
mainfrom
fix/merge-gate-unknown

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 5, 2026

Copy link
Copy Markdown
Member

What

Two findings from live use of the merge gate (/retro sweep):

  • merge-gate.sh: mergeStateStatus: UNKNOWN usually means GitHub is still computing (observed right after an adjacent merge) — the gate denied a legitimate merge on it. Bounded re-poll (3×3 s) inside the PreToolUse hook before evaluating; a persistent UNKNOWN still denies (fail-closed). Explicitly not a merge-driver loop — pr-status.sh --watch remains the watcher.
  • merge-gate-watcher.md: a PR queued via --auto can silently leave the merge queue (isInMergeQueue: false, CLEAN, nothing merged — observed live). Verify queue state via GraphQL, re-arm once via --disable-auto/--auto, then diagnose instead of re-arming repeatedly.

Came from /retro: yes

… silent queue drops

UNKNOWN usually means GitHub is still computing after a fresh push —
the gate denied a legitimate merge on it (live). Bounded 3x3s re-poll
inside the PreToolUse hook, then normal evaluation (persistent UNKNOWN
still denies). merge-gate-watcher: a queued PR can silently leave the
queue while reading CLEAN — verify isInMergeQueue, re-arm once via
--disable-auto/--auto, then diagnose.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI lite review requested due to automatic review settings August 5, 2026 17:40
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Aug 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM
CybotTM merged commit c748433 into main Aug 5, 2026
21 of 22 checks passed
@CybotTM
CybotTM deleted the fix/merge-gate-unknown branch August 5, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants