Component
API or orchestration
Describe the feature
Extend the platform beyond ad-hoc task submission with first-class, declarative triggers that create tasks automatically: time-based schedules (cron), source-control events (pull request opened, synchronized, labeled, or CI failure), and optional repo-level automation rules co-located with workflow definitions.
Triggers should resolve to a workflow_ref, inherit Blueprint defaults (model, budgets, Cedar policies), and respect existing admission controls (concurrency, idempotency, principal-to-repo authorization when available).
Use case
I'm always frustrated when valuable background work only runs if someone remembers to run bgagent submit. Operations teams want nightly dependency scans, automatic PR follow-up when CI fails, and label-driven workflows (for example, "agent:fix" on an issue) without maintaining external cron jobs or custom webhook scripts. Moving triggers into the platform makes ABCA suitable for always-on, event-driven engineering workflows—not only interactive task submission.
Proposed solution
- Trigger model — New durable configuration entity (DynamoDB + CDK/API): trigger id, repo(s), event type, filter expression,
workflow_ref, payload template, enabled flag, last-run metadata.
- Schedule path — EventBridge rules per trigger (or shared scheduler Lambda) that call the existing create-task core with a service principal and idempotency key derived from
(trigger_id, window).
- GitHub path — Extend GitHub App / webhook handling for PR and check-run events; map events to triggers with deduplication (avoid one push spawning unbounded tasks).
- Config-as-code (optional phase 2) — Allow
.abca/triggers.yaml (or workflow metadata) in the repo; Blueprint or deploy step registers triggers in the control plane.
- Observability — Emit
TaskEvents and CloudWatch metrics for trigger firings, skips, and failures; expose list/status via CLI (bgagent triggers list).
Acceptance criteria
Other information
- Related roadmap: Scheduled triggers, Automated re-onboarding, EventBridge / SNS integration.
- Related design:
docs/design/INPUT_GATEWAY.md, docs/design/WORKFLOWS.md, docs/design/ORCHESTRATOR.md.
- Existing pieces to reuse: HMAC webhooks, Slack/Linear label triggers, create-task core, durable orchestrator.
- Alternatives considered: document-only "run EventBridge yourself" (high friction); GitHub Actions calling the API ( viable but scatters config and credentials).
Acknowledgements
Component
API or orchestration
Describe the feature
Extend the platform beyond ad-hoc task submission with first-class, declarative triggers that create tasks automatically: time-based schedules (cron), source-control events (pull request opened, synchronized, labeled, or CI failure), and optional repo-level automation rules co-located with workflow definitions.
Triggers should resolve to a
workflow_ref, inherit Blueprint defaults (model, budgets, Cedar policies), and respect existing admission controls (concurrency, idempotency, principal-to-repo authorization when available).Use case
I'm always frustrated when valuable background work only runs if someone remembers to run
bgagent submit. Operations teams want nightly dependency scans, automatic PR follow-up when CI fails, and label-driven workflows (for example, "agent:fix" on an issue) without maintaining external cron jobs or custom webhook scripts. Moving triggers into the platform makes ABCA suitable for always-on, event-driven engineering workflows—not only interactive task submission.Proposed solution
workflow_ref, payload template, enabled flag, last-run metadata.(trigger_id, window)..abca/triggers.yaml(or workflow metadata) in the repo; Blueprint or deploy step registers triggers in the control plane.TaskEventsand CloudWatch metrics for trigger firings, skips, and failures; expose list/status via CLI (bgagent triggers list).Acceptance criteria
Other information
docs/design/INPUT_GATEWAY.md,docs/design/WORKFLOWS.md,docs/design/ORCHESTRATOR.md.Acknowledgements