Repository navigation
Open
Description
#3796 was approved on 2026-11-19 at 22:36Z, with auto-merge turned on 14s later. It has been conflicted since (GraphQL mergeable: CONFLICTING, REST mergeable_state: dirty). Junior missed this in two ways: its recurring status reports kept calling the PR "waiting for review", and the merge conflict check never woke the child agent that watches the PR. The PR sat unmerged for about a day until the approver noticed.
Status reporting
- A recurring Junior report checked each PR with
gh api repos/getsentry/junior/pulls/<n> --jq '[.state,.merged,.draft]'. That returnedopen false falseand showed neitherreviewDecision,auto_merge, normergeable/mergeable_state. - The report's own timer intent carried "ref: Remove isRecord and ban Record type guards #3796 in review" forward from one run to the next. Each run repeated that label instead of reading the review state again, so
openwas taken to mean "awaiting review". - Neither the report nor any other path told the approver that the approved, auto-merge PR was blocked on a conflict.
Merge conflict event never delivered
- The PR's opener, a child agent, has had an active Watch on ref: Remove isRecord and ban Record type guards #3796 since 11-19 15:58Z. Its events include
pull_request.merge_conflict, and its intent is to fix conflicts without asking. - That Conversation's event log has no
pull_request.merge_conflictdelivery for ref: Remove isRecord and ban Record type guards #3796. The last PR events it received werechecks.recoveredandcomment.createdaround 16:14Z on 11-19. - Under
merge-conflict-checks/policy.tsat 0.310.0, this PR should get a fix:- it is not a draft;
reviewDecisionisAPPROVED, which skips the 2-day activity window and the daily wait;- the branch has no bot merge commits or force pushes, so the fix count is 0.
- No merge-conflict review desk notice exists for the PR either.
maincommits after the PR's merge base touch the same files. Conflicts are likely from 2026-11-19 18:40Z onward:.oxlintrc.jsonandtools/oxlint/junior/index.ts(feat(dashboard): List every nav page and Send feedback in the command palette #3807, fix(dashboard): Show toasts only for actions, errors, and unseen results #3790, chore(api): Parse response schemas only in jsonResponse #3818),chat/conversations/sql/event-actor.ts(perf(conversations): Read the feed in three rounds #3820),chat/plugins/agent-hooks.tsandscripts/type-assertions-baseline.json(fix(github): Ask to resume stopped merge conflict fixes, and show the conflict on Inbox asks #3709), andagent-invocations/root-conversation.ts(ref(inbox): Rename the Review desk to the Inbox #3850).- Not yet verified: whether the heartbeat checked getsentry/junior in this period, and whether
hasMatchor the policy dropped the event. Sentry log queries for heartbeat and conflict messages were rate-limited when this was filed.
Raised by @BYK.
via @BYK.
--
Metadata
Metadata
Assignees
Labels
No labels
Activity
sentry-junior commentedon Nov 20, 2026
Update after resolving the conflict on #3796 (merge commit e74491c45):
tools/oxlint/junior/index.ts. chore(api): Parse response schemas only in jsonResponse #3818 registeredno-response-schema-parseon the same line where ref: Remove isRecord and ban Record type guards #3796 registersno-record-type-guard. chore(api): Parse response schemas only in jsonResponse #3818 merged at 2026-11-19 22:02Z, so the PR was probably already conflicting when it was approved at 22:36Z.pull_request.merge_conflictevent for ref: Remove isRecord and ban Record type guards #3796. Over the PR's life it only receivedchecks.recovered,checks.failedandcomment.created. Ready-for-review and approval came in as quiet notes.sentry-junior commentedon Nov 20, 2026
Root cause of the missing
pull_request.merge_conflictfor #3796: the merge conflict check worked, but the child Conversation that owns the Watch was paused by the consecutive automated-turn limit. Every conflict Event was dropped at delivery, and nobody was told.Evidence (production, release 0.310.0)
automated_turn_limit.notice.skipped(reason: missing_location) is logged foragent:51817049a1b103db334188c909eec59bon every delivery attempt. The child had run 25 Watch Turns since 15:59Z, which ismaxConsecutiveAutomatedTurns.GET pulls/3796), then read the conflict history (POST /graphql, which runs only when the PR isdirty), and then log the skip for that Conversation. The approval itself is a Quiet Event and skips the limit, so the skip in the 22:36:30 trace is the conflict Event. The policy returned "fix", and the Event was published.plugin.heartbeat.failed), but it still reached ref: Remove isRecord and ban Record type guards #3796.Why it stayed silent
admitAutomatedTurnrefuses Watch Events after 25 automated Turns in a row. Only a person's Turn or a parent message resets the count.postAutomatedTurnLimitNoticeForConversationskips the notice and releases the claim. Its parent never learns that the child stopped, so it never sends the message that would reset the count. The Watch stays active, but every Event it matches is dropped.The fix belongs in core's automated-turn limit notice (tell the parent of a paused child once, so it can message the child to continue), not in
merge-conflict-checks/.fix(events): Tell the parent when a paused child drops Watch Events (#…