type: hybrid
name: hybrid-release-pipeline
description: Complete release with shell, AI, and multi-agent steps
agents:
researcher:
name: Researcher
role: Research Analyst
instructions: Provide concise research findings
model: gpt-4o-mini
flags:
skip-tests: { description: "Skip tests" }
auto-approve: { description: "Auto-approve deployment" }
steps:
# Deterministic: check environment
- name: Check environment
run: python --version
# Agent: generate release notes
- name: Generate release notes
agent:
role: Technical Writer
instructions: Write clear, concise release notes
prompt: Generate release notes for v1.2.0
model: gpt-4o-mini
output_file: RELEASE_NOTES.md
# Parallel: run multiple checks
- name: Parallel checks
parallel:
- run: echo "Lint check passed"
- run: echo "Type check passed"
- run: echo "Security scan passed"
# Multi-agent: research step
- name: Research best practices
workflow:
agent: researcher
action: Research release management best practices
# Judge: quality gate
- name: Quality check
judge:
input_file: RELEASE_NOTES.md
criteria: Complete, clear, professional tone
threshold: 7.0
on_fail: warn
# Approve: human sign-off
- name: Approve release
approve:
description: Review and approve the release
risk_level: medium
auto_approve: "{{ flags.auto_approve }}"
# Deterministic: build
- name: Build package
run: echo "Building..."
if: "{{ not flags.skip_tests }}"
# Final notification
- name: Done
run: echo "✅ Release complete!"