Skip to content

fix(slack): Route silent acknowledgements through reactions - #1322

Merged
dcramer merged 3 commits into
mainfrom
fix/silent-ack-reaction
Aug 8, 2026
Merged

dcramer merged 3 commits into
mainfrom
fix/silent-ack-reaction

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Make silent non-text acknowledgements discoverable through the native addReaction tool contract, without duplicating tool-selection steering in the system prompt.

Single owner for tool selection

addReaction now says it covers explicit reaction requests and non-text acknowledgements when no thread reply is needed. The system prompt remains responsible only for Slack delivery protocol, including [[NO_REPLY]]; it does not repeat when to select this tool.

This follows provider guidance: OpenAI recommends passing tools through the API with clear, concise descriptions rather than manually repeating tool definitions in the prompt, xAI models choose calls from the supplied tool name/description/schema, and Anthropic recommends improving tool descriptions while avoiding overspecified eval strategies.

Deterministic safety

addReaction explicitly declares approvalMode: "approve", with a focused unit assertion, so Guardian cannot gate the harmless reaction action.

The unchanged delivery eval passed on the prior CI run with one addReaction call. Checks: pnpm --filter @sentry/junior typecheck.

Teach Slack action rules and addReaction that non-text acknowledgements
should leave a reaction rather than completing with no user-visible side
effect, so silent "seen"/ack turns stop flaking on NO_REPLY alone.

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

vercel Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 8, 2026 5:22pm

Request Review

dcramer added a commit that referenced this pull request Aug 8, 2026
Audit of tool approval modes found one real inconsistency in the
already-classified scheduler surface: create/update require Guardian
review, but delete and run-now still relied on the core-tool default
that skips it.

**What changed**

- `slackScheduleDeleteTask` and `slackScheduleRunTaskNow` now declare
`approvalMode: "review"`.
- Integration coverage asserts all mutating schedule tools are `review`,
and list stays outside review as read-only.

**Inventory findings (not changed here)**

- Core `zodTool`s with no `approvalMode` intentionally skip Guardian
(`undefined`/`approve`). That is the current design from #874, not a
silent plugin-style auto path.
- Plugin tools (`definePluginTool`) already default to `auto`, so GitHub
mutations/reads enter review via annotations/identity rather than
needing source-level `approvalMode`.
- Explicit `approve` is still appropriate for always-safe tools like
`addReaction` (handled on #1322) and memory create.
- Broader classification of sandbox/Slack/web core tools remains under
#874 / #1051; this PR only closes the incomplete scheduler adoption gap.

Refs #874
Refs #1051

Checks: `pnpm --filter @sentry/junior typecheck`. Focused schedule
integration test needs local Postgres/Vercel env linkage.

<!-- junior-request-attribution:start -->
Requested by **David Cramer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1786202635.758119 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1786202635.758119)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1786202635.758119/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>
@dcramer
dcramer marked this pull request as ready for review August 8, 2026 17:14
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 8, 2026
@sentry-junior sentry-junior Bot changed the title fix(chat): Prefer reaction acks for silent non-text turns fix(slack): Route silent acknowledgements through reactions Aug 8, 2026
@dcramer
dcramer merged commit 2ad6f54 into main Aug 8, 2026
41 of 42 checks passed
@dcramer
dcramer deleted the fix/silent-ack-reaction branch August 8, 2026 17:44

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 7a6c458f Deployed Aug 8, 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.

1 participant