Repository navigation
feat(automations): One set of automation tools with dashboard access - #2496
Conversation
…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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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]>
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.
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]>
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]>
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]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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, |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 58438a3. Configure here.


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.
createAutomationtakes atriggerof typescheduleorevent.searchAutomationsuses the dashboard search, with an optionaltypefilter.updateAutomationanddeleteAutomationwork on either type. Only scheduled automations can move.runAutomationNowqueues 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
active/paused(wasactive/blocked) and shares the dashboard pause/resume path.via David Cramer.
--
View Session [Sentry]