Skip to content

fix(slack): Say when a reaction is the whole reply - #2515

Merged
dcramer merged 2 commits into
mainfrom
fix/reaction-is-the-reply
Nov 2, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/reaction-is-the-reply

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

The integration eval "when the request is reaction-only, add a reaction without reply clutter" fails when its recordings miss and the model runs live. The model adds the reaction, then ends the Turn with a text reply that only reports it. This is the product rule that the failure exposed: when a reaction on the person's message is the whole reply, Junior does not restate it in text.

Cause. The runtime is correct. decideReply (services/assistant-reply.ts) does not deliver text from a message that calls a tool. turn-result.ts accepts [[NO_REPLY]] and gives the no_reply status. A text reply goes out only when the final message has no tool call and is not the marker. The final message in the failing runs was plain text. The reaction tool gave the model no sign that the person can see the reaction: its description says only "Add an emoji reaction to the current inbound Slack message.", and its result is only {channel_id, message_ts, emoji}. The system prompt rule ("When no visible thread reply is requested or useful ... [[NO_REPLY]]") leaves "useful" to the model. The output rules also push toward a text reply, for example "state the choices that matter in your reply". So the model reported the reaction.

Live evidence from the CI result artifacts (openai/gpt-6-luna):

Run Branch Reaction-only reply
41344475173 feat/no-plain-text-questions Added a heart reaction. (failed)
41346487651 feat/no-plain-text-questions none (passed)
41354398644 feat/no-plain-text-questions Added a ❤️ reaction. (failed)
41356852872 feat/no-plain-text-questions Added a ❤️ reaction. (failed)
41327735429 feat/scheduled-automation-dashboard-access Added a ❤️ reaction. (failed)
41360978430 this PR none (passed)

The eyes reaction case in the earlier runs posted 👀 or 👀 Done. as a reply too. That case does not check replies, so it passed. In this PR's run it posted no reply.

Change. The addReaction description now says that the person sees the reaction, and that a reaction that is the whole reply ends the Turn with exactly [[NO_REPLY]]. addReviewItem uses the same contract for its card ("the card is your reply, so end with exactly [[NO_REPLY]]"). The rule is owned by the tool, as policies/agent-steering.md says. The cross-tool protocol stays in the system prompt. No system prompt line is added.

Rejected option. I did not make the runtime drop a final message that restates a reaction. To find such a message, the runtime must classify free text. It would drop real answers that also add a reaction, for example "Added 👍. The deploy is green."

Tests. I added no new test. The existing reaction-only case in evals/integration/conversation/actions.eval.ts owns this behavior, and its assertions do not change. policies/testing.md says not to assert static prompt strings. Local checks: pnpm --filter @sentry/junior typecheck, plus vitest run tests/unit/slack tests/integration/slack-channel-tools.test.ts (290 passed). I could not run the eval live locally because the eval env (ROACH_TOKEN, cloudflared) is not available in this sandbox.

Integration evals run on this PR only with the trigger-evals-integration label, so I added it. Run 41360978430: both reaction cases missed their recordings, ran live, and passed with no reply. One live run is evidence, not a failure rate. Shard 2 failed on two scheduler cases ("save it for the Automation creator", "a due reminder says me, mention its creator"). They also failed live on feat/scheduled-automation-dashboard-access (run 41327735429), and this change does not touch them.

Related: #2514 removes "state the choices that matter in your reply", which is one of the rules that push toward a text reply.

via @dcramer.

--

View Session [Sentry]

The addReaction tool description now says the person sees the reaction,
and that a reaction that is the whole reply ends the Turn with the
no-reply marker. Live runs of the reaction-only integration eval ended
with a text reply that only reported the reaction.

The runtime already delivers only tool-free final messages and honors
the marker. The tool result gave the model no sign that the reaction was
visible, so the model reported it. addReviewItem uses the same contract
for its card.

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

vercel Bot commented Nov 1, 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 2, 2026 12:06am UTC

Request Review

@dcramer

dcramer commented Nov 1, 2026

Copy link
Copy Markdown
Member

we know this ones gonna be flakey so maybe we can toelrate the failure? the issue is its not quite "expected to fail" just that we know its not reliable.. i dont think we have a way to manage tha tyet

Whether the model ends a reaction-only Turn with the no-reply marker or
reports the reaction in text is model choice, not runtime wiring. The
behavioral suite owns model choice and tolerates unreliable cases with
its 80% floor. The assertions do not change.

The integration silent reply case in delivery.eval.ts still covers that
a reaction with no visible reply posts nothing.
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: low PR risk score: low labels Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

1 screenshot change — 1 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed

@sentry-junior

sentry-junior Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Moved the reaction-only case to behavioral (evals/conversation/actions.eval.ts) with the same assertions. Whether the model ends with [[NO_REPLY]] or reports the reaction is model choice, not wiring, and the behavioral suite tolerates unreliable cases through its 80% floor. The integration silent-reply case in delivery.eval.ts still covers that a reaction with no visible reply posts nothing.

@dcramer
dcramer merged commit 7206cd4 into main Nov 2, 2026
49 checks passed
@dcramer
dcramer deleted the fix/reaction-is-the-reply branch November 2, 2026 01:30

This branch was successfully deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant