name: multi-agent-analysis version: "1.0.0" description: Parallel multi-agent code analysis pipeline metadata: author: system tags: - code-review - multi-agent - parallel inputs: repository: type: string required: true description: Repository path or URL branch: type: string required: false default: main description: Branch to analyze stages: - name: parallel-analysis type: parallel parallel: wait: all branches: - name: security-scan type: agent agent: template: code-review config: review_focus: - security timeout: 10m - name: performance-analysis type: agent agent: template: code-review config: review_focus: - performance timeout: 10m - name: maintainability-check type: agent agent: template: code-review config: review_focus: - maintainability timeout: 10m - name: synthesize-results type: agent agent: template: default config: action: synthesize_reviews requires: - parallel-analysis timeout: 5m - name: conditional-gate type: condition condition: if: "stage.synthesize-results.artifacts.critical_findings > 0" then: name: human-review-required type: gate gate: approval: human timeout: 1h else: name: auto-approve type: gate gate: approval: auto requires: - synthesize-results - name: generate-report type: agent agent: template: default config: action: generate_analysis_report requires: - conditional-gate timeout: 5m on_failure: action: notify notify: - dev-team timeout: 2h