Repository navigation
feat(agents): Do not report that delegated work started - #3040
sentry-junior[bot] wants to merge 3 commits into
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
|
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
left a comment
There was a problem hiding this comment.
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.
|
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 |
|
Agreed, that's simpler. I removed the runtime gate (47e86d3). The |
|
16 screenshot changes — 16 changed · 0 added · 0 removed Review screenshots in Frameshift Show 10 more changed screenshots |
|
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. |
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]>

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
spawnAgentdescription now says not to report that the work started. When Junior has nothing else to say, it ends the Turn with[[NO_REPLY]], asaddReviewItemand 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 atmaxSlicesPerTurn.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