Skip to content

docs(automations): Make the Slack Destination optional - #3728

Merged
dcramer merged 1 commit into
mainfrom
docs/automations-slack-only-destination
Nov 20, 2026
Merged

dcramer merged 1 commit into
mainfrom
docs/automations-slack-only-destination

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

design/automations.md said each run posts its result to the Destination. That makes Slack sound required, but a run's result always shows in the Automation's Runs, and a Slack post is an optional extra. Web Conversations, such as the planned lead, never get a run's result.

  • Summary: each run's result shows in Runs. An Automation can also post its result to a Slack Destination.
  • Rule: a Destination is optional. It is a Slack channel or DM, never a web Conversation.
  • Gap: code still requires a Destination for each Automation (AutomationDestination on create).

Docs only. Nothing breaks.

via @dcramer.

--

View Session [Sentry]

@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 20, 2026 4:42pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Question Typed · Desktop
Conversation Question Typed · Desktop
Changed
Inbox Palette Pages · Desktop
Inbox Palette Pages · Desktop
Changed
Locations · Desktop
Locations · Desktop
Changed
Review Item Evidence Dock · Desktop
Review Item Evidence Dock · Desktop
Changed
Review Item Evidence Dock Light · Desktop
Review Item Evidence Dock Light · Desktop
Changed
Show 2 more changed screenshots
System Cache Warming · Desktop
System Cache Warming · Desktop
Changed
System Cache Warming Refill Running · Desktop
System Cache Warming Refill Running · Desktop
Changed

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 19, 2026 02:59
@sentry-junior
sentry-junior Bot requested a review from dcramer November 19, 2026 02:59
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 19, 2026
dcramer added a commit that referenced this pull request Nov 19, 2026
…lic Slack channel (#3731)

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.

<!-- 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]>
@dcramer

dcramer commented Nov 20, 2026

Copy link
Copy Markdown
Member

this is probably not clear enough

automations allow you to optionally deliver the result to a slack destination

you can still view the results of an automation via its Runs

A run's result always shows in the Automation's Runs. A Destination only
adds a Slack post, so it is optional, and it is never a web Conversation.
Record that each Automation must still have a Destination as a gap.
@sentry-junior
sentry-junior Bot force-pushed the docs/automations-slack-only-destination branch from 3376c31 to 5df20ee Compare November 20, 2026 16:41
@sentry-junior

sentry-junior Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Reworded in 5df20ee7f, rebased on main. The summary now says each run's result shows in the Automation's Runs, and that an Automation can also post to a Slack Destination. The Rule says a Destination is optional and is a Slack channel or DM, never a web Conversation. Each Automation still needs a Destination in code (AutomationDestination is required on create), so I added that as a Gap.

@sentry-junior sentry-junior Bot changed the title docs(automations): State that Automations deliver only to Slack docs(automations): Make the Slack Destination optional Nov 20, 2026
@dcramer
dcramer enabled auto-merge (squash) November 20, 2026 16:52
@dcramer
dcramer merged commit 65ea618 into main Nov 20, 2026
53 checks passed
@dcramer
dcramer deleted the docs/automations-slack-only-destination branch November 20, 2026 16:54
BYK pushed a commit that referenced this pull request Nov 20, 2026
Daily design docs audit of the files that `main` commits from 2026-11-19
17:00 UTC to 2026-11-20 17:00 UTC could affect: attention, automations,
child-agents, github, inbox, inbox-stacks, slack. Index is complete.
slack.md needs no change.

**New gaps**
- `github.md`: a PR that Junior opens ready for review asks for review
at once, before the required checks pass
(`packages/junior-github/src/tools/create-pull-request.ts`
`requestPullRequestReviewers`). Breaks Attention's "asks for a review
only when the required checks pass".
- `child-agents.md`: some child input still runs in the legacy child
worker (`packages/junior/src/chat/agent-invocations/result.ts`, TODO for
#3060 step 7). Breaks "one execution path runs every
Conversation".

**Closed gaps (deleted)**
- `attention.md`: Junior's own merges and force pushes no longer count
as merge conflict fixes. Only fixes that the policy or Resume started
count (`packages/junior-github/src/merge-conflict-checks/policy.ts`
header and `parseGitHubConflictHistory`, #3709).
- `inbox-stacks.md`: snoozes are stored per person on the server, not in
one browser (`packages/junior/src/chat/inbox-snoozes/`,
`/api/inbox/snoozes`, #3392, #3567).

**Corrected gaps**
- `attention.md`: a stopped merge conflict fix now adds a `Merge
conflict` action Review item with Resume, not a notice (`policy.ts`
`addStoppedItem`, #3709). Dropped the stop thresholds.
- `attention.md`: a blocked Automation adds no Review item, but the
classic Inbox does list it under "Blocked automations"
(`packages/junior-dashboard/src/client/inbox/InboxSidebar.tsx`), so "the
Inbox does not show them" is cut.
- `inbox.md`: To do in the new Inbox shows actions with no assignees
(`itemNeedsViewer` in
`packages/junior-dashboard/src/client/inbox/reviewItemFormat.ts`;
`canAct` is true with no assignees).
- `github.md`: the re-review gap cites the Attention goal that it
breaks.

**Entry point**
- `automations.md`: "ask Junior in the conversation that should get the
results" assumed a Destination, which #3728 made
optional.

**Cuts**
- `attention.md`: a Rule line that repeats Intent; grammar fix.
- `automations.md`: the 24-hour timeout value.
- `github.md`: "item" → "Review item" (TERMINOLOGY.md).
- `inbox.md`: the auto-archive behavior list (incomplete restatement).
- `inbox-stacks.md`: the root field implementation note, a repeat of the
Conversation row line, and a comparison with the classic Inbox look.

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

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

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_308af2f633f53a5c69dbdbc614b57ad7)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_308af2f633f53a5c69dbdbc614b57ad7/?project=4510944073809921)

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

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 5df20ee7 Deployed Nov 20, 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