Skip to content

feat(automations): One set of automation tools with dashboard access - #2496

Merged
dcramer merged 7 commits into
mainfrom
feat/scheduled-automation-dashboard-access
Nov 1, 2026
Merged

dcramer merged 7 commits into
mainfrom
feat/scheduled-automation-dashboard-access

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Automation tools now manage automations the same way the dashboard does, and one set of tools covers scheduled and event automations. The tools are not tied to Slack: any Turn that a person started can use them.

  • createAutomation takes a trigger of type schedule or event.
  • searchAutomations uses the dashboard search, with an optional type filter.
  • updateAutomation and deleteAutomation work on either type. Only scheduled automations can move.
  • runAutomationNow queues a scheduled automation and rejects event automations.

Access follows the shared rule: anyone in the workspace can manage an automation in a public channel. Private-channel and DM automations stay with that conversation and their creator. Only the creator can enable creator credentials, change outcomes, or move an automation. A non-creator who changes the instruction or trigger switches it to system credentials, and cannot resume or run now an automation that still uses creator credentials. Retried create calls keep their existing IDs.

Notes for reviewers

  • Scheduled automation status now uses active/paused (was active/blocked) and shares the dashboard pause/resume path.
  • Stored automations still keep a Slack destination and creator. A Conversation with no Slack Location can search and manage automations, but cannot create or move one.
  • Tool names and inputs changed, so eval recordings need a refresh in CI.

via David Cramer.

--

View Session [Sentry]

…ool management

Scheduled automation tools rejected every update, run-now, and delete
outside the channel where the automation delivers. The dashboard lets
owners and public Destination readers edit, and keeps lifecycle actions
creator-only. Apply that same rule, through resolveViewerTaskCandidate,
when a tool runs outside the delivery channel.

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

vercel Bot commented Oct 31, 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 1, 2026 6:14pm UTC

Request Review

Anyone in the workspace can now edit, pause, resume, and delete an
automation in a public channel, from the dashboard or any Slack
conversation. Private channel and DM automations stay with their creator
and the people in that conversation.

One access rule (resolveViewerTaskCandidate and its SQL form) now serves
the dashboard, the scheduled tools, and the event tools.
slackScheduleListAutomations becomes slackScheduleSearchAutomations and
uses the dashboard Automations search.

Creator credentials stay creator-authorized: a non-creator who changes
the instruction, schedule, or trigger switches the automation to system
credentials, and a non-creator cannot resume or run now an automation
that still uses creator credentials.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title feat(scheduled-automations): Use dashboard access for cross-channel tool management feat(automations): Share public automation management across dashboard and tools Oct 31, 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.

Stale Bugbot comment from a previous run.

A Slack tool call now owns the automations that its Slack actor created
in the same workspace, also when the identity lookup returns nothing.
Before, the creator was treated as a non-creator in that case.

Setting an event automation to the status it already has is a no-op
again, instead of failing the resume check.
@sentry-junior sentry-junior Bot changed the title feat(automations): Share public automation management across dashboard and tools feat(automations): Share automation access between the dashboard and agent tools Oct 31, 2026
Rename the scheduled automation tools to createScheduledAutomation,
searchScheduledAutomations, updateScheduledAutomation,
deleteScheduledAutomation, and runScheduledAutomationNow. Rename
listEventAutomations to searchEventAutomations, which now uses the
shared dashboard search.

Build the tool caller from any person Actor and the Conversation
Location, so dashboard Conversations can use the tools. Turns that no
person started still cannot. Search takes a destination id and scope
current_conversation instead of channel_id and here.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title feat(automations): Share automation access between the dashboard and agent tools feat(automations): Share automation access and make the automation tools platform-neutral Nov 1, 2026
Replace the per-type tools with one set that works for any automation:
createAutomation (trigger type "schedule" or "event"), searchAutomations
(optional type filter), updateAutomation, deleteAutomation, and
runAutomationNow (scheduled only; it rejects event automations).

The shared access rule, credential checks, and retry-stable IDs stay the
same. Scheduled status changes now use the shared pause and resume path,
like event automations and the dashboard.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title feat(automations): Share automation access and make the automation tools platform-neutral feat(automations): One set of automation tools with dashboard access Nov 1, 2026
The merged automation tools ran every eval live, and three automation
evals failed:

- The create tool told the model to write the requester's mention when it
  named the creator by name, which contradicts the instruction schema.
  requireInstructionPeople now rejects a new creator mention or name and
  asks for "the Automation creator". Other requesters still need their
  mention.
- The event update eval required identifier and resourceType in the
  update input, but the tool keeps the saved values when they are
  omitted. The eval now checks the saved trigger.
- The search scope guidance led the model to search "mine" first for a
  reminder someone else created. Scope now says to omit it unless the
  user limits the search.

Co-Authored-By: David Cramer <[email protected]>
The scheduler creation eval still saved "in this channel", which means
nothing to a later run. requireInstructionReferences (was
requireInstructionPeople) now rejects "this channel", "this
conversation", and "this thread" unless the previous instruction had
it, and gives the channel mention to write instead.

Also update the channel-message automation test, which created an
automation whose instruction tagged its own creator by mention.

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

@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 58438a3. Configure here.

) {
requireInstructionReferences(input.instruction, {
creator: current.task.createdBy,
destinationChannelId: current.task.destination.channelId,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Move suggests the old channel

Low Severity

updateAutomation passes the current destination into requireInstructionReferences even when the same call also moves the automation. A new instruction that says this channel is told to write a mention for the old destination, so a retry can lock the wrong channel into the moved automation.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 58438a3. Configure here.

@dcramer
dcramer merged commit acf7a84 into main Nov 1, 2026
50 checks passed
@dcramer
dcramer deleted the feat/scheduled-automation-dashboard-access branch November 1, 2026 18:24

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 58438a3c Deployed Nov 1, 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