Skip to content

Overhaul Junior automations #1717

Closed

Description

@sentry-junior

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 outcomes as 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

  1. 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.
  2. 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.
  3. 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.
  4. Explicit outcomes

    • Keep agent work silent when outcomes is empty.
    • Add send_message outcomes 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.
  5. 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.
  6. Migrate and remove

    • Migrate existing scheduled and event tasks without changing their visible behavior. A legacy task with no stored outcomes sends 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.

Related work

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 outcomes list 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.

--

View Junior Session [Sentry]

Activity

  1. dcramer commented on Aug 29, 2026

    @dcramer
    Member

    Event terminology follow-up

    Resource event is accurate, but it exposes an internal data-model term. The leading replacement is Event.

    This gives the related terms a direct meaning:

    • Event: one normalized change published by a plugin or core.
    • Watch: a temporary Conversation association that receives matching Events.
    • Event task: a saved instruction that runs for matching Events.

    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.md already 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.

  2. changed the title [-]Align tasks and automations product model[/-] [+]Overhaul Junior automations[/+] on Sep 7, 2026
  3. added a commit that references this issue on Sep 24, 2026
    7049390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions