Scion Triggers: how the pieces fitState as of 2026-11-17 03:15 UTC

How to read the pieces

The vocabulary the plan proposes for GLOSSARY.md (Stage 1 PR 6 adds it). “Trigger” means the rule resource only; older uses (notification “trigger activities”, lifecycle-hook “triggers”) are to be renamed over time.

Trigger
A project-scoped rule: which source and event types it listens to, an optional match rule, a subject policy, and one action to run. It can be listed, paused and audited, and it runs with its creator’s recorded authority.
Source
Where events come from. A source kind (webhook, github, schedule, later chat, agent_lifecycle) is Go code that Scion curates. A source instance is a row a user creates, such as a webhook endpoint or a schedule.
Event
One normalised envelope stored in the durable inbox (trigger_events): type, subject, attributes, bounded payload, dedup key. Every rule, template and agent envelope reads it.
Subject
A stable key for what an event is about, such as github:owner/repo#42. The subject policy (new, skip, reuse) uses it to decide whether a second event for the same thing fires again, is skipped, or goes to the agent already working on it.
Action
What a fire does to its target: message an existing agent, dispatch_agent to create one, exec a command in one, or github.comment. Validated at authoring, authorized again at every fire.
Fire
One attempt to run one trigger’s action for one event, recorded once in trigger_fires with an outcome: fired, failed, refused (authority denied) or skipped (not an error: target not running, subject busy, rule could not be evaluated, limit reached).
Dialect
A rule language registered in the shared rule engine. cel is the only one triggers accept today. system_one is a model-backed dialect that is registered upstream but not yet usable in trigger rules.
Seam
The narrow interface that lets something plug in later without redesign. The dialect seam: rule slots carry a dialect tag and pkg/ruleengine admits dialects per consumer. Triggers owns the seam; the System One workstream owns its dialect.
Endpoint
A webhook endpoint: a project-owned URL (/api/v1/hooks/{id}) plus a secret and a signature or auth mode. It can optionally be bound to an agent. The id locates the endpoint; it is not a credential.
Durable queue
pkg/durablequeue, a generic leased-row work queue with no trigger types in it. The trigger inbox is its first consumer.
Fire core
The action registry, recorded-authority resolution, fire-time authorization, tracked fires and history writer, extracted from the scheduler and shared by schedules and triggers.
Recorded authority
The creator’s principal, credential, authorization_revision and frozen effect ceiling, captured at authoring. Every fire runs as this, never as the event’s sender.
Preset
A server-side GitHub rule template (for example “review on @app /review”) that compiles to event types plus CEL. The form is kept so it can be re-rendered; editing the CEL by hand drops the form.