One pipeline for every “when X happens, do Y”
Scion already had one trigger: the scheduler (“when the clock says X, run Y as Z”). The Triggers work lifts the scheduler’s fire-and-authority machinery into a source-agnostic core, then plugs new event sources into it: generic webhooks, GitHub App events, and later chat and agent lifecycle events. Rules are written in CEL. System One (model-backed decisions) can plug in later as a second rule dialect. Actions are the same ones schedules already use: message an agent, dispatch a new agent, or run a command in an agent.
Two sides of a boundary: what Scion curates and what users create
hub.triggers); composed surfaces such as --to-self and GitHub presets sit on top of it.Read on
Functional milestones
What a user can do at each step (F0–F8), how to demo it, live status, critical path, risks.
Core model
Source → Event → Trigger → Action → Fire, subjects and policies, the durable inbox, where authority is checked.
Sources and ingress
Generic webhooks and their signature modes, GitHub App events, schedules, Jira, what comes later.
Rules, CEL and System One
The CEL engine and its limits, the dialect registry, and how System One plugs in.
Actions and targets
message, dispatch_agent, exec in an agent, github.comment, and the templating trust rule.
Cross-cutting
Authority, security, durability, history, experiments, hosted vs workstation hubs.
Status
Stages 1–4 by phase: merged upstream, built but not merged, designed only.
Glossary
Trigger, source, event, subject, action, fire, dialect, seam, endpoint.
The stages in one line each
- Stage 1 (ptone/scion#7961): the trigger core, the durable queue, the CEL engine, and one generic-webhook slice ending in a
messageto an agent. - Stage 2 (ptone/scion#304): complete general webhooks:
dispatch_agentwith templating, offline queueing, agent-bound endpoints, more auth modes, a web page, and (addendum P8)execas a trigger action. - Stage 3 (ptone/scion#836): the existing GitHub App webhook becomes a source, with command parsing, repository-to-project routing, one agent per PR, presets and a
github.commentaction. - Stage 4 (optional, not designed): schedules shown as triggers, chat routing (ptone/scion#994), agent-lifecycle source, more actions.