Overview of Factory Workflows
mainFactory workflows are label-triggered, issue-scoped agentic workflows in CI. Each "factory" reacts to a specific GitHub label on an issue, performs deterministic pre-activation, and delegates work to an AI agent with bounded outputs (typically one PR and one sticky comment).
Workflow Lifecycle
- Issue Classification: A classifier reads new issues and applies routing labels (e.g.,
needs-research,needs-reproduction). - Triggering: A maintainer promotes an issue by applying a factory trigger label (e.g.,
research-factory,code-factory). - Pre-activation: The system qualifies the trigger, captures context, suppresses duplicate PRs, sanitizes content, and sets a
phase-*label. - Agent Execution: An agent uses tools (like
elastic-docsMCP orgithubtools) to perform the task and emit bounded outputs.
Factory Trigger Labels
| Label | Workflow Source | Output |
|---|---|---|
research-factory | research-factory-issue.md | Sticky implementation-research comment |
reproducer-factory | reproducer-factory-issue.md | Sticky reproducer comment; optional reproduction PR |
change-factory | change-factory-issue.md | One OpenSpec proposal PR |
code-factory | code-factory-issue.md | One implementation PR that closes the issue |
Note: These labels must exist in the repository settings before they can be used to trigger workflows.