Repository navigation
fix(slack): Route silent acknowledgements through reactions - #1322
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: David Cramer <[email protected]>
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
marked this pull request as ready for review
August 8, 2026 17:14
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.
Make silent non-text acknowledgements discoverable through the native
addReactiontool contract, without duplicating tool-selection steering in the system prompt.Single owner for tool selection
addReactionnow 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
addReactionexplicitly declaresapprovalMode: "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
addReactioncall. Checks:pnpm --filter @sentry/junior typecheck.