Repository navigation
fix(agents): Carry event people up through child agent results as mentions - #2850
Merged
Merged
Conversation
…result A child agent that handles a watch event reports it by provider handle, such as "BYK requested changes". The parent then mentioned the same person in Slack and named them in the third person. Store the linked Event doers on the agent invocation that the events start. Its <agent-result> and <agent-message> now carry the same <done-by> line and "you" rule that Event task input has. Fixes #2849 Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
requested changes
Nov 7, 2026
BYK
left a comment
Member
There was a problem hiding this comment.
We need a more generic solution where:
- We don't have to store this information in the DB, at least separately
- It should scale down to grandchildren.
…tions Drop the done_by_json column. A child agent now calls each person by the Slack mention its input gives, and the agent that replies to that person writes to them as "you". Each level keeps the mention, so this also covers grandchildren.
BYK
approved these changes
Nov 7, 2026
23 tasks done
sentry-junior Bot
added a commit
that referenced
this pull request
Nov 16, 2026
Review flagged a stored field that the provider or existing rows could give in #2306, #2824, #2828, #2850, #2951, #3042, #3181, and #3383. The rule goes in the interface-design Lifecycle state section, next to the rule that owns copies, instead of AGENTS.md. It names the cases that need a stored value: an earlier-time snapshot, missing read authority, and a measured read cost. Those cases match the durable payloads in serverless-background-work.md and the stored handles in context-bound-systems.md. Co-Authored-By: David Cramer <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2849.
A child agent that handles a watch event reports it by provider handle ("BYK requested changes on #2055"). The parent then mentioned the reviewer in Slack and also named them in the third person. The #2248 "you" rule only reached the child, and the child's reply goes to the parent, not to the person.
The identity now travels up as a Slack mention in the text. There's no new storage, and it works at any depth:
peopleTags):If your reply is to <@U…>, write to them as "you". Otherwise call them <@U…>, not "BYK".This replacesIf you mention <@U…>, write to them as "you", and do not also call them "BYK".A grandchild writes the mention, the middle child keeps it (its reply is to its parent), and the root writes to the person as "you".
Tests
peopleTagstext in the task-input unit snapshots and inevent-wake-delay.evals/coding/subscriptions.eval.ts: the requester reviews the PR, and the review reaches the thread through a child agent result. I did not run it locally. The sandbox has Node 22 and noROACH_TOKEN, and Roach needs Node 24.14+. The existing PR review notifications refer to the reviewer by GitHub login even when they are the mentioned Slack user #2248 eval ("address them once as you") also covers the reworded event rule.via @BYK.
--
View Session in Sentry