Skip to content

feat(automations): Let web Conversations create Automations for a public Slack channel - #3731

Merged
dcramer merged 3 commits into
mainfrom
feat/web-automation-slack-destination
Nov 19, 2026
Merged

dcramer merged 3 commits into
mainfrom
feat/web-automation-slack-destination

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

A web Conversation, such as the planned private lead, could not create an Automation, because the tools took the Destination only from a Slack Location. Automations still deliver only to Slack (#3728). Now a web Conversation creates one by naming a public Slack channel.

  • createAutomation gets destination: current_conversation (the default in Slack) or a public Slack channel by id, mention, or known name. A web Conversation has no current_conversation, so it must name a channel. DMs and private channels stay reachable only from inside them.
  • Create uses the updateAutomation move resolver, now in chat/automations/tool-destination.ts. A web Turn binds no Slack installation token, so with no Slack Location the workspace is the bot token's own team, and the caller must have a linked Slack account there. An install with no single bot token cannot create from web; the person asks from Slack instead.
  • Moves are unchanged: only a Conversation in Slack can move an Automation.
  • A new Automation stores visibility and conversationAccess from its Destination, not from the requesting Conversation.
  • Guardian keeps unclear_destination for a channel the person did not ask for. New Guardian eval cases from a private web context: a channel the person named is allowed; a public channel the agent picked asks.

via @dcramer.

--

View Session [Sentry]

sentry-junior Bot and others added 2 commits November 19, 2026 02:49
…lic Slack channel

createAutomation takes a destination: current_conversation (default in
Slack) or a public Slack channel by id, mention, or name, resolved with the
updateAutomation move resolver. A web Conversation has no Slack channel, so
it must name a public channel; the team comes from the person's linked
Slack Identity. The Automation stores the visibility of its Destination,
not of the requesting Conversation.

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

vercel Bot commented Nov 19, 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 19, 2026 3:23am UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 19, 2026 03:10
@sentry-junior
sentry-junior Bot requested a review from dcramer November 19, 2026 03:10
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 19, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b7a224e. Configure here.

…ations

A web Turn binds no Slack installation token, so channel checks and joins
use the single bot token. Resolve the Destination workspace from that token
(auth.test) instead of the caller's linked identity, and require the caller
to have a Slack account there. Without a single bot token, ask from Slack.
@github-actions

Copy link
Copy Markdown
Contributor

8 screenshot changes — 8 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automation Skill Editor · Mobile
Automation Skill Editor · Mobile
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Show 2 more changed screenshots
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed

@dcramer
dcramer merged commit f375936 into main Nov 19, 2026
51 of 52 checks passed
@dcramer
dcramer deleted the feat/web-automation-slack-destination branch November 19, 2026 04:07
dcramer added a commit that referenced this pull request Nov 20, 2026
…aceholder gaps (#3800)

Daily design-docs check of the files that the last day of commits on
`main` could affect.

**design/automations.md**
- New entry point: a dashboard Conversation creates an Automation by
naming a public Slack channel as the Destination. #3731
added this on purpose
(`packages/junior/src/chat/automations/tool-destination.ts`).

**design/google.md**
- New gap: `readMeetingTranscript` reads the organizer's transcript Doc
for any invited requester. It never checks that the requester can open
the Doc (`packages/junior-google/src/tools/read-meeting-transcript.ts`,
`isInvited` checks only). A transcript is a Doc like any other, so this
breaks the goal "never reads … a file for a person who could not" and
the rule "reads a file … only for a requester who can open it".

**design/guardian.md**
- Intent change: the credential-fact goal covers every placeholder
credential in the Sandbox again, not only plugins that declare
`credentials`. #3707 narrowed it to match the code. The
goal from #3694 is that Guardian does not deny a normal
plugin API call as a secret leak, and that applies to every plugin with
a placeholder.
- New gap: GitHub (`GITHUB_TOKEN`), Vercel (`VERCEL_TOKEN`), and Datadog
(`DD_API_KEY`) set their placeholders through `commandEnv`, so
`guardianPluginFacts` (`packages/junior/src/chat/guardian/policy.ts`)
adds no fact for them.

**design/child-agents.md**
- New gap: `archiveAgent` refuses a Task ("Only a Thread can be
archived", `packages/junior/src/chat/tools/runtime/archive-agent.ts`).
This breaks "a parent manages the lifecycle of its child agents", which
covers Tasks too.

**design/inbox-stacks.md**
- Cut: the root-field implementation sentence, the comparison with the
classic Inbox look, and the planned-work note on server snoozes.

<!-- junior-request-attribution:start -->
via [automation
`sched_5076e4cb686a5e474279137daf734019`](https://junior-prod.sentry.dev/automations/sched_5076e4cb686a5e474279137daf734019)
· Run ID `sched_5076e4cb686a5e474279137daf734019:1795107600000`,
@dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!--
junior-conversation-id:agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4
-->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4/?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 added a commit that referenced this pull request Nov 21, 2026
#3731 lets `createAutomation` and `updateAutomation`
name a public Slack channel as the Destination, and Junior joins that
channel when it is not a member. Managing channel membership makes the
Automation platform more complicated than it needs to be right now.

With this change, a named channel must be one that Junior is already in.
If Junior is not in it, create and move fail with a tool error that says
someone must add Junior to the channel. Junior never calls
`conversations.join` for an Automation Destination.
`current_conversation` works the same as before.

Behavior change: before #3731, a move to a public
channel Junior was not in also joined that channel. That move now fails,
the same way create does.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A8cc79933a2b34697d745b41231f88739 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A8cc79933a2b34697d745b41231f88739)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8cc79933a2b34697d745b41231f88739/?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]>

This branch was successfully deployed

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

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant