Skip to content

fix(agents): Carry event people up through child agent results as mentions - #2850

Merged
BYK merged 3 commits into
mainfrom
fix/agent-result-doers
Nov 7, 2026
Merged

BYK merged 3 commits into
mainfrom
fix/agent-result-doers

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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:

  • Event task input (peopleTags): If your reply is to <@U…>, write to them as "you". Otherwise call them <@U…>, not "BYK". This replaces If you mention <@U…>, write to them as "you", and do not also call them "BYK".
  • Child agent runs: the reply goes to the parent agent, so the child calls each person by the Slack mention its input gives, not by a handle or a name.
  • Agent input rules (root and middle children): a child agent calls people by mention. When your reply is to a person that a child agent names, write to them as "you", and don't also name them in the third person.

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

via @BYK.

--

View Session in Sentry

…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]>
@vercel

vercel Bot commented Nov 6, 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 7, 2026 12:40am UTC

Request Review

@BYK BYK 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.

We need a more generic solution where:

  1. We don't have to store this information in the DB, at least separately
  2. 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.
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: high PR risk score: high labels Nov 7, 2026
@sentry-junior sentry-junior Bot changed the title fix(agents): Tell the parent who did the watch events behind a child result fix(agents): Carry event people up through child agent results as mentions Nov 7, 2026
@BYK
BYK merged commit 0beee3d into main Nov 7, 2026
44 of 45 checks passed
@BYK
BYK deleted the fix/agent-result-doers branch November 7, 2026 00:47
sentry-junior Bot added a commit that referenced this pull request Nov 16, 2026
Reviewers asked whether a stored field was needed in #2306,
#2824, #2828, #2850,
#2951, #3042, #3181, and
#3383. No check can tell which state the owner can give,
so this is a rule.
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

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relayed child agent results talk about thread participants in the third person

1 participant