Repository navigation
fix(slack): Say when a reaction is the whole reply - #2515
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
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.
|
1 screenshot change — 1 changed · 0 added · 0 removed Review screenshots in Frameshift
|
|
Moved the reaction-only case to behavioral ( |
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.tsaccepts[[NO_REPLY]]and gives theno_replystatus. 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):Added a heart reaction.(failed)Added a ❤️ reaction.(failed)Added a ❤️ reaction.(failed)Added a ❤️ reaction.(failed)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
addReactiondescription now says that the person sees the reaction, and that a reaction that is the whole reply ends the Turn with exactly[[NO_REPLY]].addReviewItemuses the same contract for its card ("the card is your reply, so end with exactly[[NO_REPLY]]"). The rule is owned by the tool, aspolicies/agent-steering.mdsays. 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.tsowns this behavior, and its assertions do not change.policies/testing.mdsays not to assert static prompt strings. Local checks:pnpm --filter @sentry/junior typecheck, plusvitest 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-integrationlabel, 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 onfeat/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]