Repository navigation
Description
Junior currently exposes overlapping ideas—scheduled tasks, event tasks, watches, subscriptions, and plugin behavior—with different storage, output, and UI rules. This issue is the parent plan for replacing that with one small Automation model while keeping temporary Watches separate.
Product model
Use these user-facing terms consistently:
- Automation: a saved instruction that Junior runs later. It has an owner, a trigger, an instruction, and an ordered list of outcomes.
- Schedule: a time-based trigger for an Automation.
- Event: a normalized change from GitHub, Vercel, Linear, core, or another provider.
- Watch: a temporary connection between an Event and the current Conversation. A Watch reports matching Events into that Conversation and expires; it is not an Automation.
Replace user-facing Scheduled task with Scheduled automation, and Event task with Event automation. Replace Resource event with Event in one complete cutover. Do not add aliases that leave both vocabularies live.
Do not expose plugin registrations as Automations. Plugins publish Events and provide tools; saved user instructions are the only durable Automations shown in the product.
Simple behavior
- A schedule or Event starts the same Automation execution path.
- Automations use Junior's existing Conversation and Turn runtime; there is no second agent or workflow engine.
- An Automation stores
outcomesas an ordered list. An empty list means that success has no post-run effect. - A message outcome has
action: "send_message"and an explicit Slack Destination. This keeps the Automation's management location separate from where its result is sent. - One Automation can send its result to more than one Destination. Junior applies outcomes in order.
- Silent work is silent by stored policy, not by asking the model to emit
[[NO_REPLY]]. - Visible output is explicit. A fixed reminder or post should send its stored text without a model run. Work that needs the agent should send output only when a stored outcome says to send it.
- Tool effects remain owned by their provider. The Automation layer does not learn GitHub, Slack, Vercel, or Linear business logic.
- Failures, blocked authorization, and repeated retries are reported to the owner separately from successful outcomes. They do not become surprise messages in an outcome Destination.
System boundaries
Keep each part narrow:
- Event and schedule sources decide only when work is ready.
- Automation storage owns the saved trigger, instruction, owner, management location, and outcomes.
- Automation execution turns one ready item into one ordinary Junior Turn, then applies stored outcomes in order.
- Provider tools perform effects and own their idempotency rules.
- Watches only route matching Events into an existing Conversation.
- Management UI and API list saved Automations, not provider event definitions or registered plugin behavior.
Avoid a graph editor, chained workflow steps, a generic workflow language, provider-specific runners, or a second task runtime. Outcomes are a small ordered list of post-run effects, not a workflow graph.
Delivery plan
-
Name and contract cutover
- Update the product vocabulary, source kinds, plugin event contract, tools, dashboard, docs, and telemetry together.
- Keep compatibility only at durable storage and queue boundaries where old data may still exist during deploys.
-
One Automation record
- Give scheduled and event-driven work the same durable shape and lifecycle.
- Keep trigger-specific data behind schedule and Event boundaries instead of branching the rest of the system.
- Store ordered outcomes as data. Use an empty list for no successful post-run effect.
-
One execution path
- Feed every Automation into the existing Conversation mailbox and Turn runner with an honest Source.
- Remove scheduler-, event-task-, and plugin-specific model loops or Slack stand-ins.
- Preserve owner credentials, authorization resume, cancellation, deduplication, and conversation-scoped automated-turn limits.
-
Explicit outcomes
- Keep agent work silent when
outcomesis empty. - Add
send_messageoutcomes with explicit Slack Destinations. - Apply multiple outcomes in order.
- Bypass the model for fixed reminders and fixed posts.
- Give failures a runtime-owned owner notification path.
- Keep agent work silent when
-
Single management surface
- Replace the Tasks surface with Automations.
- Support create, inspect, pause, resume, edit, run now, and delete for saved Automations.
- Show the trigger, owner, management location, outcomes, and latest useful status without exposing provider internals.
- Keep Watches conversation-scoped and out of the Automations inventory.
-
Migrate and remove
- Migrate existing scheduled and event tasks without changing their visible behavior. A legacy task with no stored
outcomessends to its existing task Destination. - Remove old names, duplicate tables and APIs where practical, prompt-only silence, and obsolete dashboard paths after deployed readers have moved.
- Document the final model and add integration coverage by user flow rather than by implementation branch.
- Migrate existing scheduled and event tasks without changing their visible behavior. A legacy task with no stored
Related work
- Simplify Junior around one core Conversation and optional Location #1563 — shared Conversation/Turn runtime and clean Source, Location, and Delivery boundaries; prerequisite infrastructure, not the Automation product parent.
- Make agent automations tool-driven by default #1766 — tool-driven and explicit-outcome behavior; first major child of this issue.
- feat: adopt core action review in scheduler tools #1051 — approval policy for creating or changing durable Automations.
- Scheduler fabricates mention links in task outputs #554 and [[NO_REPLY]] marker leaks into Slack replies #1741 — current prompt-generated output failures that the explicit-outcome model should retire or narrow.
- Show turn-scoped Slack footer on event replies #1641 — visible context for Event-driven Conversation replies; applies to Watches, while Automation communication follows stored outcomes.
- Add working-days recurrence to the scheduler #450 — richer schedule rules after the common model exists.
- Support resource subscriptions for Vercel deploys #938 — another Event provider; should publish Events without adding a Vercel-specific Automation path.
- Cheaper handling for resource-event turns #1038 — Event filtering and cost optimization after behavior is correct.
- feat(github): plugin-defined reactive behavior hooks #435 — replace plugin-defined reactive task behavior with provider Events plus user-owned Automations; do not create a separate registered-task product.
Complete when
- A user can explain an Automation as “when this schedule or Event happens, run this instruction, then apply these outcomes.”
- A user can create an Automation in a channel and have its result sent to a DM or another Slack Destination.
- An empty
outcomeslist causes no successful post-run effect. - Multiple outcomes run in order.
- Watches remain the small temporary “tell me when” feature.
- Scheduled and event-driven Automations share storage, execution, management, and policy.
- Silent success does not depend on model wording.
- Providers publish Events and perform effects without owning an Automation runtime.
- The code, tools, UI, docs, and telemetry use one vocabulary with no live legacy aliases.
Requested by David Cramer.
--
Activity
dcramer commentedon Aug 29, 2026
Event terminology follow-up
Resource eventis accurate, but it exposes an internal data-model term. The leading replacement isEvent.This gives the related terms a direct meaning:
This also fits the current docs, which already use phrases such as “plugin event.” The main conflict is the stored Conversation event log. Use Agent history item for those records, as
TERMINOLOGY.mdalready requires.Decide this with the Task versus Automation product name. Then apply one complete rename across the Source kind, plugin contract, watches, dashboard, and docs. Do not add a partial alias.
Related: #1563 and #1730.
[-]Align tasks and automations product model[/-][+]Overhaul Junior automations[/+]feat(automations): store explicit outcomes (#1788)
ref(automations): remove task no-reply prompt contract (#1804)
refactor(automations): Cut over product terminology (getsentry#1818)
docs(features): Ground feature intent in commit history
docs(design): Add design docs for Automations, GitHub, and the Review…