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

Cross-cutting concerns

Authority and fire-time authorization

Security passes

The new public ingress and prompt-injection exposure were flagged at triage. ptone’s direction (2026-11-14): no design-stage security gate; the owner decides per PR whether a specialist security pass runs, once, after code review and before the upstream compare link, and only High or Critical findings force rework. Examples so far: the CEL engine PR got a pass (two Medium cache-sizing items deferred to 3b); Stage 1 1b-1 passed; Stage 2 P1a passed; the GitHub normaliser and the queue nudge were judged not to need one. The first P8 (exec) PR is to get a pass.

Prompt-injection defences built into the design: external content is framed in a dedicated external_payload section; skills tell agents it is data; untrusted template variables need explicit opt-in and get a trailer; agent-creating and exec rules require replay-protected sources; GitHub presets default to an owner/member/collaborator sender gate and exclude bots.

Durability and retries

Ingress dedupunique (source kind, source id,dedup key); duplicate → 202,nothing created (GitHubredeliveries are safe) Fire idempotencyunique (event, trigger);a restart cannot double-fire;claim-then-act; outcomewritten by compare-and-set Queue retriesstore errors retry withbackoff; after the permanentlimit the event is markedfailed Restart recoveryhourly reaper: stuck “firing”→ failed; pending events withno queue item reconciled Offline targets (S2)message fire “waiting”,30 s → 5 min backoff, nudgedwhen the agent runs; TTL→ “expired” (notifies)
Schedules keep their own “no retries, missed slots collapse” behaviour.

History and audit

Events and fires are kept 7 days and purged by the existing hourly job. scion trigger history, scion trigger event list|get [--payload] (agent-allowed reads), counters on each trigger, content-free audit records (no payload bodies), and Prometheus counters per source kind and outcome (Stage 1 PR 6, Stage 3 G7). Stage 2 adds a project Triggers web page (endpoints, rules with a render preview, events, history) and notify-on-failure (failed, refused, expired by default; a user notice to the creator, 1 h cooldown).

Experiment gating

ExperimentGatesOff means
hub.triggerstrigger resources, inbox, drainer, generic webhook route, web page (alpha, default off)routes 404; nothing paused
hub.github_triggers (requires hub.triggers)GitHub content-event routingGitHub route keeps today’s 200 ignored
hub.exec_schedules (requires hub.conduit)exec schedules; needed for trigger execexec fires skipped
hub.system_oneSystem One dialect use–
hub.message_policiesSystem One M1 message policies–

The scheduler’s move onto the shared core is not user-visible and has no flag: it must behave identically with hub.triggers off.

Hosted vs workstation hubs