Add a workflow plugin
Workflow plugins decide whether an event should start work and which runtime provider should receive it.
- Match on normalized event names and subjects, not raw provider payloads.
- Keep capability requirements explicit for runtime starts, comments, merges, secret access, and other sensitive actions.
- Produce deterministic runtime input: repository, issue or pull request, branch, instructions, checks, and completion path.
- Record enough context for operators to understand why the workflow ran.
- Cover routing decisions, skipped events, retryable failures, and capability denial with focused tests.
- Update public reference docs when plugin APIs or event contracts change.
Source spec
Section titled “Source spec”Plugin runtime behavior is defined in docs/plugin-runtime-contract.md.