Skip to content

fix(events): Tell the parent when a paused child drops Watch Events - #3898

Merged
BYK merged 1 commit into
mainfrom
fix/merge-conflict-approved
Nov 20, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/merge-conflict-approved

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the missed pull_request.merge_conflict in #3886.

A child agent that reaches the consecutive automated-turn limit drops every later Watch Event. A root posts a pause notice to its Location, and a person's reply resets the count. A child has no Location, so its notice was skipped. Nothing reset the count, and the Watch silently dropped every Event it matched, including merge conflicts on the child's pull request.

Now the first Watch Event that the limit drops for a child agent sends the pause notice to its parent, as a child agent message. The notice claim stays held, so the parent gets one notice per pause. A message from the parent resets the limit, as before.

The new import from agent-invocations/result adds a call-time import cycle (notice → result → notification → notice), which is kept.

via @BYK.

--

View Session [Sentry]

A child agent that reaches the consecutive automated-turn limit drops every
later Watch Event. Its pause notice was skipped because a child has no
Location, so nobody learned of the pause and the parent never sent the
message that resets the limit. The first dropped Event now sends the notice
to the parent.

Refs #3886

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 20, 2026 9:34pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

8 screenshot changes — 8 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Answered · Desktop
Conversation Question Answered · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed
Conversation Question Typed · Desktop
Conversation Question Typed · Desktop
Changed
Show 2 more changed screenshots
System Cache Share · Desktop
System Cache Share · Desktop
Changed
System Cache Warming Refill · Desktop
System Cache Warming Refill · Desktop
Changed

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 20, 2026 21:53
@sentry-junior
sentry-junior Bot requested a review from BYK November 20, 2026 21:53
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 20, 2026
@BYK
BYK merged commit bcec028 into main Nov 20, 2026
55 checks passed
@BYK
BYK deleted the fix/merge-conflict-approved branch November 20, 2026 21:57
dcramer added a commit that referenced this pull request Nov 21, 2026
Daily design docs audit for the commits on `main` up to
f98658436. It checked `attention`, `automations`,
`cache-warming`, `context-compaction`, `child-agents`, `github`,
`sandbox-credentials`, `google`, `inbox`, and `inbox-stacks`. One goal
is clarified and two rules are added.

### New gaps

- `attention.md`: an Automation alert shows only in the dashboard Inbox.
The alert has no linked Conversation
(`packages/junior/src/chat/automations/alert-items.ts`,
`conversationIds: []`), and Slack cards post only to the threads of
linked Conversations
(`packages/junior/src/chat/slack/review-item-card-sync.ts`). A blocked
Automation also gets a plain DM
(`packages/junior/src/chat/automations/blocked-notice.ts`). This breaks
"Slack and the dashboard ask for attention for the same things".
- `inbox.md`: an alert for a blocked Automation or for an unavailable
trigger is `kind: "action"` with no `request` (`alert-items.ts`,
`automationAlert` and the content it builds). It asks no question, but
it counts as needing the creator. This breaks "a notice tells a person
about something that they must fix".

### Intent changes

- `child-agents.md`: a parent wakes only when a child messages it. A
`reply`, a `messageAgent` message, a blocked report, a failure, and the
notice that a paused child dropped Watch Events (#3898)
are all messages. Before, the goal named only `reply`, blocked reports,
and failures.
- `google.md`: new rules for what Junior reads from a colleague's
calendar. These state the current behavior (`list-events.ts`, and
`readCalendar` in `find-meeting-times.ts` from #2252).
They do not change it.

### Gap changes

- `attention.md`: a blocked Automation is no longer listed as an ask
that adds no Review item. #3856 gave it an Automation
alert. The Slack-only part moves to the new gap above.

### Cuts

- `automations.md`: the Automation alert rule listed behavior and
repeated `inbox.md`. Its "offers Run again and Pause" was also wrong for
event Automations, which get only Pause. It now points to the Inbox.
- `inbox.md`: removed the step list and the history from the alert
rules.
- `inbox-stacks.md`: "tenant", the server-snooze mechanism, and the
alert visibility clause that `inbox.md` owns. Rewrapped two long lines.
- `context-compaction.md`: removed the warmup price math that
`cache-warming.md` owns.
- `attention.md`: removed "When Junior is blocked, it says what the
person must do", which repeats the Intent. "push notifications" becomes
"a push", as `TERMINOLOGY.md` says.
- `github.md`: removed the repeats of "never a direct push to the
default branch" and "A person merges it".
- `google.md`: merged the two Google group lines and removed the repeat
of "never uses the Google credentials of the people it helps".

<!-- junior-request-attribution:start -->
via [automation
`sched_5076e4cb686a5e474279137daf734019`](https://junior-prod.sentry.dev/automations/sched_5076e4cb686a5e474279137daf734019)
· Run ID `sched_5076e4cb686a5e474279137daf734019:1795280400000`,
@dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0CHB3YHES2%3A1795281742.386739 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CHB3YHES2%3A1795281742.386739)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CHB3YHES2%3A1795281742.386739/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — e88c339d Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant