Skip to content

feat(agents): Do not report that delegated work started - #3040

Closed
sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/quiet-delegation-status
Closed

sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/quiet-delegation-status

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

When a person asks for work and Junior hands it to a child agent, Junior posts a status like "I've sent ARC Trooper Fives to open the draft PR…". The status marks the thread unread and adds nothing, because the child's result posts when it arrives.

Change

Prompt only. The spawnAgent description now says not to report that the work started. When Junior has nothing else to say, it ends the Turn with [[NO_REPLY]], as addReviewItem and the reaction tool already do. The child's result Turn still posts.

An earlier version added a runtime quiet rule for delegation. Per review, the existing no-reply marker already covers this, so that rule is gone.

Can silence hide a failure?

No. Every child agent that is not stopped sends a result to its parent. A failed or blocked child reports. A child that loses its worker fails after CONVERSATION_WORK_MAX_RETRIES, and the heartbeat delivers that result. A child that keeps running fails at maxSlicesPerTurn.

Tests

evals/integration/conversation/subagents.eval.ts: the owning delegation case now checks that the first Turn posts nothing, and that the result Turn posts the code word.

via @BYK.

--

View Session in Sentry

A person's Turn that only delegates ended with a status such as "Sent
Fives to open the draft PR". It posted and notified people, though the
child's result posts again when it arrives.

The runtime now honors [[QUIET]] on a person's Turn when the Turn started
a child agent whose result still comes back. A stopped child agent never
reports, so it does not count. Event Turns stay as before, and a card
always delivers. The spawnAgent description tells Junior to end with one
line of status and to mark it quiet only when it says nothing else.

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

vercel Bot commented Nov 9, 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 9, 2026 9:56pm UTC

Request Review

@BYK
BYK marked this pull request as ready for review November 9, 2026 21:41
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 9, 2026

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0b4c2e2. Configure here.

…t status

The runtime also creates agent invocations for a parent, such as for
nested results. Those have no parent tool call, so they no longer let a
person's reply stay quiet.
@dcramer

dcramer commented Nov 9, 2026

Copy link
Copy Markdown
Member

you can just ask it to not report work and it will silence becauase it knows it can send a silence marker

this feels like cruft we're going to have to unwind if we land this kind of thing

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lets avoid this its going to fuck up the broader agent design and im working on subagents

Review feedback: the agent can already end a Turn with [[NO_REPLY]], so
the runtime does not need a quiet rule for delegation. Remove the
runtime gate. The spawnAgent description now says not to report that
the work started.
@dcramer

dcramer commented Nov 9, 2026

Copy link
Copy Markdown
Member

at the very least lets avoid touching anything in the subagent logic pipeline here. im not 100% sure what this is trying to fix (too much jargon tbqh), but the quiet stuff im rewriting right not to be more reliable and done via tool calls

@sentry-junior

sentry-junior Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Agreed, that's simpler. I removed the runtime gate (47e86d3). The spawnAgent description now says to end with [[NO_REPLY]] when there's nothing to say beyond that the work started, the same way addReviewItem and the reaction tool do. The diff is now only the prompt line, the docs sentence, and the eval assertion.

@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: medium PR risk score: medium labels Nov 9, 2026
@sentry-junior sentry-junior Bot changed the title feat(agents): Keep a status that only says a child agent started quiet feat(agents): Do not report that delegated work started Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Page · Desktop
Automation Page · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Show 10 more changed screenshots
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Catch Up · Mobile
Conversation Catch Up · Mobile
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log Virtual · Desktop
Conversation Event Log Virtual · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed
Memories · Mobile
Memories · Mobile
Changed
Push Notifications Tip · Desktop
Push Notifications Tip · Desktop
Changed
Push Notifications Tip On · Desktop
Push Notifications Tip On · Desktop
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@sentry-junior sentry-junior Bot closed this Nov 9, 2026
@sentry-junior

sentry-junior Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of @dcramer's rewrite of quiet replies through tool calls, which will change this code. For that work: the goal was that Junior should not post a message that only says delegated work started, because the child agent's result posts when it arrives.

BYK added a commit that referenced this pull request Nov 11, 2026
When a person asks for work and Junior hands it to a child agent, Junior
posts a message a few seconds later that repeats the request ("I passed
these to Cody…"). The message also sends a push notification. The
child's result posts when it arrives, so this message adds nothing.

The cause is one sentence in the `spawnAgent` description: "End your
turn with a short status." It now tells Junior to call `noReply` when
the reply posts to people and only says the work started. A reply with
an answer, a question, or a Thread's `dashboard_url` still posts. A
child agent's final response goes to its parent, not to people, so the
new rule does not apply to it.

This uses the `noReply` tool that is already on main. It changes no
runtime code. #3040 tried this with the old `[[NO_REPLY]]` marker and
was closed for the tool-based rewrite.

## Tests

`evals/integration/conversation/subagents.eval.ts`: the owning
delegation case now also checks that the first Turn posts nothing. The
prompt in that case does not ask for silence.

Draft until the integration evals pass. I could not run them here
because the new description has no Roach recording yet. The child-agent
and tool adapter integration tests pass, and so do typecheck and lint.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3A22ee8ffd3d20fc5c02b510ca -->

--

[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A22ee8ffd3d20fc5c02b510ca/?project=4510944073809921)

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

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

This branch was successfully deployed

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

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants