feat(triggers): event triggers Phase 1 — file watcher support#212
Merged
feat(triggers): event triggers Phase 1 — file watcher support#212
Conversation
…rt (#211) Add triggers as a new event source alongside cron schedules. Phase 1 implements: - WorkflowTrigger and TriggerType config types with YAML parsing and validation - File watcher trigger using notify crate with debounce support - TriggerState service for pending event queue and deduplication - Trigger dispatch engine integrated into daemon tick loop - CLI trigger subcommand scaffolding (list, enable, disable) - 6 new passing tests, zero regressions Triggers are configured in .ao/workflows/*.yaml alongside schedules: triggers: - id: on-file-change type: file_watcher workflow_ref: auto-test config: paths: ["src/**/*.rs"] debounce_secs: 5 Phase 2 will add generic webhook (HTTP) triggers for GitHub/Slack integration. Refs: #211 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Apr 1, 2026
Closed
Merged
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Shooksie
added a commit
that referenced
this pull request
Apr 8, 2026
…rt (#211) (#212) Add triggers as a new event source alongside cron schedules. Phase 1 implements: - WorkflowTrigger and TriggerType config types with YAML parsing and validation - File watcher trigger using notify crate with debounce support - TriggerState service for pending event queue and deduplication - Trigger dispatch engine integrated into daemon tick loop - CLI trigger subcommand scaffolding (list, enable, disable) - 6 new passing tests, zero regressions Triggers are configured in .ao/workflows/*.yaml alongside schedules: triggers: - id: on-file-change type: file_watcher workflow_ref: auto-test config: paths: ["src/**/*.rs"] debounce_secs: 5 Phase 2 will add generic webhook (HTTP) triggers for GitHub/Slack integration. Refs: #211 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notifycrate with configurable debounceWorkflowTrigger/TriggerTypeconfig types, YAML parsing, validationTriggerStateserviceao trigger list/enable/disableCompetitive Context
Cursor Automations, Claude Code /loop, and Devin self-scheduling all shipped event-driven triggers in March 2026. This restores AO's lead in the "persistent daemon" category.
Config Example
Test plan
cargo checkpasses (full workspace)cargo test -p orchestrator-config— 225 pass, 16 fail (all pre-existing on main)cargo test -p orchestrator-daemon-runtime— 62 pass (+3 new), 1 fail (pre-existing)cargo test -p orchestrator-core— 218 pass (+3 new, 1 pre-existing fixed), 1 fail (pre-existing)Next: Phase 2
Generic webhook triggers (HTTP) for GitHub, Slack, and custom integrations.
Closes #211 (Phase 1)
🤖 Generated with Claude Code