Skip to content

Triggers: let a cron/webhook trigger run a durable pipeline, not just the 4 canned actions #92

Description

@serge-ivo

Gap found assessing the lead-finder (2026-08-02). Instance triggers can fire on cron/webhook, but the action is limited to `create_task | add_knowledge | log_event | sync_connector` (`lib/triggers.ts`). None of them can run a deterministic multi-step pipeline (e.g. a Places grid sweep) or write into a collection. So "on a schedule, run this pipeline and store results" has no native path — you must hand-write a first-party Cloudflare Workflow (behind the closed `workflow` union) or an external Worker.

Ask

Give cron/webhook triggers a way to drive durable work:

  • A run_workflow (or run_pipeline) trigger action that fires a durable Workflow for the instance (escapes the 30s DO limit; resumable — same machinery as JOB_APPLY/CODING_SESSION).
  • Decouple from the closed workflow union so a new pipeline can be registered as data/code, not a monorepo edit (ties to Tier-2, [3P] Tier-2: sandboxed creator code via Dynamic Workers (CRITICAL PATH) #52).
  • Optionally an insert_record trigger action (webhook → collection) for the simple ingest case.

Acceptance

  • A cron trigger can kick a resumable per-instance pipeline that reads/writes the instance's collections.
  • Adding a new pipeline type doesn't require editing the capability union.

Relates to #58, #52.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions