Scion Triggers: how the pieces fitMilestones checked 2026-11-19 01:00 UTC

Functional milestones: what a user can do, and when

The effort as a ladder of capabilities rather than PRs. Each step says what becomes possible, how to show it, which PRs it needs and what is still missing. PR state checked with gh at 2026-11-19 00:57 UTC against GoogleCloudPlatform/scion (“upstream”) and ptone/scion (“fork”); review and CI state from the Stage 1–3 owner state files (latest entries 2026-11-19 00:00 UTC). No dates are forecast: none of the sources commits to one.

What changed since 2026-11-17 18:17 UTC

The ladder at a glance

#A user can…StatusGated by
F0(nothing visible yet) building blocks are in upstream maindone—
F1send a signed webhook that lands as a message in a running agentreviewed, waiting on CIfork CI, then the joint 1b-2 + 1b-3 upstream window
F2say which events fire, with an ordered list of CEL rulesin progress3b-1 (reviewed, CI) after F1; 3b-2 not started
F3have a webhook start a new agent from a templatein progressPR 2a, 2b (reviewed), 2c (not started), then S2 P1c
F4use webhooks fully: bound to an agent, queued while it sleeps, other auth modes, web pagenot startedF3, then S2 P2b–P7
F5have a GitHub comment reach a running agent through a triggerin progressF1 upstream, G1a + G1b, real GitHub App validation
F6have the GitHub App answer on the PR (acknowledgement, agent link)in progressclient merged; action needs F5 and S2 P1c
F7get one agent per PR, driven by preset slash commandsin progresspreset core merged; G4 needs F3; then G6 rest, G7
F8extensions: run a command in an agent from an event, model-backed filters, Jira, chat routingnot startedper item, below

Pill key: done: everything merged upstream every remaining piece reviewed, landing in progress: some pieces built, merged or in review, others not started not started. F6 and F7 are “in progress” only because an early slice merged (G3-client, G6-core); nothing a user can see works yet.

Critical path

rules chain GitHub chain (G1 needs 1b, not PR 2) dispatch chain 1a fire coremerged #4969 1b-1 definitionsmerged #5004 1b-2 + 1b-3 jointfork 8233, 8236 · CI 3b-1 rule listsfork 8234 · CI 3b-2 rule evalissues 8030, 8257 System One T28051 · no implementer G1a App ingressfork 8346 · approved G1b + real App testissue 8087 · in dev G2 + G5 rest8088, 8092 G3 comment action8090 (client merged) PR 2a · PR 2bfork 8286, 8320 PR 2c core cleanupissue 8029 S2 P1c dispatch8058 · + githubToken G4 reuse per PR8091 (+ S1 PR 4) G6 rest, G78093, 8094 S2 P2b, P3–P7+ S1 PR 4, 5, 6 S2 P8 exec actionissue 8241 F1 F2 F8 F5 F6 F3 F7 F4 F8 merged upstream reviewed, waiting on CI or rebase in development or review not started (designed) milestone reached when this lands needed for CEL rules beyond event types
Everything still to come waits first on the joint 1b-2 + 1b-3 window, which itself waits on fork CI. After that come three chains. Dispatch (the longest): PR 2a and 2b, then 2c, then Stage 2 P1c, which F3, F4, G3’s comment body, G4 and P8 all need. GitHub: G1a is stacked on 1b-3 and can go upstream right after it; G1b and a real GitHub App test then give F5. Rules: 3b-1 is submitted after 1b-3; 3b-2 gives F2, and System One T2 builds on it. Per the Stage 3 phase table, G1 needs Stage 1 1b (and 3b for CEL rules beyond event types), not PR 2 or P1c. Arrows show the main dependency only; the full lists are in each stage design’s phase table.

Top open risks and decisions

#Risk or decisionWhy it mattersOwner
1Fork CI backlog. 58 runs queued vs 2 running at 23:05 UTC 11-18, across the whole fork. 1b-2, 1b-3, 3b-1 and 2b have no code failures; their stamps wait on CI, about 2 h late at 23:00 UTC.Holds back every reviewed Stage 1 PR, and with them every user-visible milestone. Agents cannot add runners.ptone (runner capacity, or cancelling stale runs); escalated by the coordinator
2The joint 1b-2 + 1b-3 window. Both must merge together: 1b-2 alone would accept events nothing drains. Each upstream rebase can conflict, as 1b-1 did on 11-18.Gives F1, and is the base for G1a, 3b-1 and PR 2.triggers-s1-coord / triggers-s1-em-2; ptone merges
3The PR 2 chain. 2a had stalled unnoticed for about 16 h before review on 11-18; it and 2b now conflict with main and need rebasing. 2c starts only after the 1b window, 2a and 2b. Earliest estimate (11-18 19:10 UTC) for 2a: stamp on the morning of 11-19 UTC.Longest chain: gates S2 P1c, so F3, F4, G3’s comment, G4 (F7) and P8.triggers-s1-em-2 (delivery); triggers-s1-coord (sequence)
4System One T2 has no implementer. The binding design (ptone/scion#8051, prerequisite #8045) has been reconciled; it waits on rule lists and dispatch landing in Triggers.Model-backed rule elements (F8) cannot start until someone owns them.system-one-mode

Also open: G1 needs a real GitHub App and a test repository for its validation gate, which only ptone can provide (to be raised when G1b nears completion). System One M1 (ptone/scion#8047, draft PR ptone/scion#8250) awaits validation on a clean host; it is CEL-only and does not block Triggers.

F0 Foundations merged done

The building blocks are in upstream main. Nothing a user can trigger yet; exec schedules are usable on their own.

Demo it by: create an exec schedule with the CLI or the web UI that runs a command in an agent (exec schedules Phases 1–5). For the Triggers blocks, the unit suites of pkg/durablequeue, pkg/celengine/pkg/ruleengine, pkg/triggertemplate and the GitHub normaliser; a hub admin can read GitHub App readiness (G5-core).

PiecePRState
Durable delivery queue (S1 1q)GoogleCloudPlatform/scion#4897merged 11-15
CEL rule engine, dialect registry (S1 3a)GoogleCloudPlatform/scion#4913merged 11-15
System One: runtime and admin API, dialect registration, consumer admission (deny by default)GoogleCloudPlatform/scion#4903, #4934, #4942, #4945merged 11-15, 11-16
Exec schedules: Conduit routes, one-shot, session hold, recurring, CLI, web UIGoogleCloudPlatform/scion#4895, #4906, #4935, #4957, #4938, #4961merged 11-15 to 11-17
Template package, pkg/gitref (S2 P1a); queue nudge (S2 P2a)GoogleCloudPlatform/scion#4956, #4959merged 11-16
HomeFiles create channel (S2 P1b)GoogleCloudPlatform/scion#4965merged 11-17
GitHub event normaliser (S3 G2n); App readiness, primary repo routing (S3 G5-core)GoogleCloudPlatform/scion#4960, #4970merged 11-17

Missing: nothing for F0. Merged pieces that belong to later milestones are listed there (1a and 1b-1 under F1, G3-client under F6, G6-core under F7).

F1 A signed webhook delivers a message to an agent reviewed, waiting on CI

A project owner creates a webhook endpoint and a trigger; any system that can sign a POST can then put a message in front of a running agent, and the fire shows up in history. (Stage 1 vertical slice.)

Demo it by: with the hub.triggers experiment on, run scion trigger webhook create, then scion trigger create with a message action to a running agent (event types only, no filter yet). Send a curl POST signed with the endpoint secret (scion_v1 HMAC; the CLI help carries the sender example). The agent receives an event envelope (webhook.received, event id, trigger, payload); scion trigger history shows the fire as fired. Re-sending the same delivery creates nothing new. This is the Stage 1 validation gate, run on a workstation hub. Today, with 1b-1 merged, the endpoint and trigger definitions can be created but nothing is accepted from outside.

PiecePRState
1a fire core extracted from the scheduler (no behaviour change)GoogleCloudPlatform/scion#4969merged 11-17 22:33
1b-1 endpoint and trigger definitions, authz, CLIGoogleCloudPlatform/scion#5004merged 11-18 15:44
1b-2 webhook ingressptone/scion#8233 (head 62c2451)reviewed + security pass; fork CI
1b-3 drainer, message action, event read API, historyptone/scion#8236 (head 42498bd)reviewed + security pass; fork CI

Missing: fork CI on 1b-2 and 1b-3, then stamps; the joint compare window and upstream merge; the manual gate run. Convenience pieces come later: one-call webhook create --agent/--message is S1 PR 5 (ptone/scion#8032).

F2 Users say which events fire, with CEL rules in progress

A trigger carries an ordered list of rules (1–8), checked in order and AND’d, stopping at the first that fails, so cheap checks run before expensive ones. Bad rules are refused when written, with the error position. The list format already allows System One elements; projects can use them only once F8 lands.

Demo it by: scion trigger create … --where "event.attributes.branch == 'main'" --where "has(event.payload.pr)" (repeatable; order is evaluation order). A syntax error is refused at create time with its position (3b-1 alone). With 3b-2: send two webhooks, one matching and one not; only the matching one fires, and scion trigger history shows how far down the list each event got (matched_through).

PiecePR / issueState
3a engineGoogleCloudPlatform/scion#4913merged
3b-1 rule authoring with the ordered rule list (match_rules) and scion trigger getptone/scion#8234 (head 5a05ff5; scope ptone/scion#8257)rework reviewed + security pass; fork CI
3b-2 evaluation in the dispatcher, short-circuit loop, countersptone/scion#8030, #8257not started

Missing: 3b-1 fork CI and stamp; it goes upstream after 1b-2 + 1b-3. 3b-2 (stacks on 1b-3; carries one deferred Low finding from the 3b-1 security pass).

F3 A webhook starts a new agent from a template in progress

Instead of messaging an existing agent, a trigger creates one: task text rendered from the event, labels linking it to the trigger and event, and the event available inside the agent. The new agent runs as the trigger’s author would if they had started it by hand: the author as owner, credentials on, project defaults applied (ptone, 11-17, option (b)).

Demo it by: create a trigger with a dispatch_agent action and a task template; send a signed POST. A new agent appears with labels trigger=<id> and trigger_event=<id>, owned by the trigger’s author, with the author’s secrets as an interactive create would give it; SCION_TRIGGER_EVENT_ID in its environment and ~/.scion/trigger-event.json in its home; inside it, scion trigger event get returns its event; the fire row carries the new agent’s id (Stage 2 acceptance 1).

PiecePR / issueState
S2 P1a templates; P1b HomeFiles channelGoogleCloudPlatform/scion#4956, #4965merged
S1 PR 2a: exec through the fire core (behaviour-identical)ptone/scion#8286 (head 35638e1)reviewed; rebasing onto main
S1 PR 2b: headless create as the recorded author, env and secrets gathered from hub storageptone/scion#8320 (head 6bac5fc)reviewed + security pass; fork CI
S1 PR 2c: core cleanup, triggers generalised (one authoring target rule, auto-pause)ptone/scion#8029not started
S2 P1c: dispatch from a webhook event, subject claims, githubToken field, CLIptone/scion#8058not started

Missing: F1 upstream; 2a rebase, CI and stamp; 2b CI and stamp (GitHub also reports 2b as conflicting with main); 2c (after the 1b window, 2a and 2b); P1c. ephemeral: true on dispatched agents needs ptone/scion#194 (open); nothing else here does.

F4 Webhooks complete (ptone/scion#304) not started

An agent can make its own webhook; events wait while the agent is asleep; senders can use a hub token or provider signatures; a project web page shows endpoints, rules and history. Endpoints stay project-owned: an agent can be bound to one, but there are no hub-level or user-profile endpoints (triggers-arch, 11-19).

Demo it by: from inside an agent, scion trigger webhook create --to-self; post to it while the agent is suspended, resume it, and the message arrives (within the TTL). Delete the agent and the endpoint goes with it unless created --persistent. Then open the project Triggers page.

PieceIssueState
S1 PR 4 skip policy and envelope; PR 5 CLI incl. one-call create; PR 6 observabilityptone/scion#8031, #8032, #8033not started
S2 P2 message templating, offline queue (P2a merged, P2b open)ptone/scion#8059P2b not started
S2 P3 agent-bound endpoints, --to-self lifetimeptone/scion#8060not started
S2 P4a hub_token, replay window, limits; P5 large payloads; P6 web page; P7 notify, docs, skillptone/scion#8061, #8063, #8064, #8065not started

Missing: all of it after F3; P5 and P6 are marked deferrable in their issues.

F5 A GitHub event reaches an agent through a trigger in progress

Comments on a repository associated with a project become trigger events with plain attributes (repo, number, action, sender, command…), and triggers route them to agents. G1 covers issue_comment; other event families come with G2.

Demo it by: on an issue or PR in an associated repository, comment @<app> /ping. Each associated project gets one event with event.attributes.command = "ping"; a trigger matches it; the envelope lands in a running agent; scion trigger history shows the fire. Pressing “Redeliver” in GitHub creates nothing new, and neither does re-posting the same signed body with a fresh delivery id (body-hash dedup, option A). Must be validated against a real GitHub App before Stage 3 fans out. Note: commands in comments on a PR’s conversation are skipped (fail-closed) until G2 enrichment lands.

PiecePR / issueState
G2n normaliser; G5-core readiness and primary routingGoogleCloudPlatform/scion#4960, #4970merged
G1a: App webhook content-event ingress, own-App guard, per-project fan-out and dedupptone/scion#8346 (head 61ccca4)third blind review approved; nits being verified
G1b: github trigger authoring, event get/list CLI, manual validation runbookptone/scion#8087in development
G2 full normalisation, PR enrichment; G2b push (deferrable)ptone/scion#8088, #8089not started
G5 rest: installation events, scion trigger github CLI, fan-out hookptone/scion#8092not started

Missing: G1a can go upstream only after 1b-3 merges; it must then be restacked onto it (GitHub reports it as conflicting today). G1b; a likely security pass (new public entry point); manual validation with a real GitHub App and test repository (ptone). Then G2 and the rest of G5.

F6 The GitHub App answers on the PR in progress

A github.comment action posts a templated comment as the App (acknowledgement, link to the agent, guidance), once per fire, and the App never triggers itself.

Demo it by: add a github.comment action to the F5 trigger; comment @<app> /ping; a single reply from the App appears on the PR. Redeliver does not post twice.

PiecePR / issueState
G3-client: comment client, permissions, project trigger-sources endpointGoogleCloudPlatform/scion#4984merged 11-17 23:06
G3 action, unmatched-command reply (carries two deferred security items)ptone/scion#8090not started

Missing: the action needs G1 (F5), and S2 P1c for the comment-body slot. This is the App speaking for the hub, not agents replying; agents reply with the GitHub installation token they hold (with githubToken: installation, the default for GitHub triggers).

F7 One agent per PR, driven by preset commands in progress

Later events on the same PR or issue go to the agent already working on it; bursts collapse to one dispatch; presets such as “review every PR to main” or “plan on @scion /plan” are picked from a list, not written by hand.

Demo it by: apply the presets in one project and replay the reference workload’s command matrix (/review, /validate, /fix, /plan, /implement) from recorded deliveries; the expected fires happen (Stage 3 acceptance 2). Push several commits quickly to one PR: one agent, never two. In the web UI, pick a preset and see the routing table. Today a client can list presets and compile one to a rule list through the hub API (G6-core), but nothing applies it.

PiecePR / issueState
G6-core: preset registry, compiler, GET and compile routesGoogleCloudPlatform/scion#5010merged 11-18 14:18
G4 subject reuse, coalesce_window, stale refusalptone/scion#8091not started
G6 rest: Match.Form persistence, preset CLI, acceptance scenario e2eptone/scion#8093not started
G7 web card, preset picker, docs, skillptone/scion#8094not started

Missing: G4 needs G2, S1 PR 2 and PR 4, and S2 P1c; the G6 rest needs G3 and G4; G7 needs G6 and S2 P6/P7.

F8 Extensions not started

Independent additions on top of the core, roughly in ptone’s stated priority: P8 sits below the Stage 3 critical path and above Jira.

CapabilityDemo it byIssue · gated byState
Run a fixed command in an agent from an eventa webhook starts a cron-like job (the P8 acceptance fixture); the command reads SCION_TRIGGER_CONTEXTptone/scion#8241 · S1 PR 2, S2 P1not started
Model-backed (System One) rule elementsa list [cel, system_one] where the CEL guard runs first; only in projects on the opt-in allow-list (empty by default); written by users only in v1ptone/scion#8051, #8045 · 3b-1/3b-2, dispatchdesigned; no implementer
Jira Cloud inbounda Jira webhook with the jira_v1 signature mode fires a triggerptone/scion#8062 (S2 P4b) · S2 P1c, P4a (lowest priority)not started
Chat content routinga message matching a pattern in a watched channel is relayed to an agent with historyptone/scion#994 · after Stage 3; Stage 4 has no designplan only
Schedules shown as triggers; agent lifecycle source; delete-agent on PR closeunknown (no design)Stage 4 list in the planplan only

Related: durable evaluation memo for model-backed elements (ptone/scion#8258, unowned); ephemeral agents (ptone/scion#194, open). The trigger consumer of the rule engine admits CEL only until T2 lands.