# Gadfly reviewing its OWN PRs — now a thin CALLER of the reusable workflow # (.gitea/workflows/review-reusable.yml), dogfooding the Phase-4 "subscribe" # path. The reusable holds the image pin + env plumbing; this file holds only # the triggers, the actor gate, and gadfly's specific swarm config. # # Advisory only — never blocks a merge. Fleet: 6 cloud + Claude Code # (sonnet, opus, opus:max) competitors. name: Adversarial Review (Gadfly) on: pull_request: types: [opened, reopened, ready_for_review] issue_comment: types: [created] workflow_dispatch: inputs: pr_number: description: "PR number to review" required: true permissions: contents: read issues: write pull-requests: write concurrency: group: gadfly-${{ github.event.issue.number || github.event.pull_request.number || github.event.inputs.pr_number }} cancel-in-progress: true jobs: review: # Security: only trusted users may trigger a secret-bearing run via a PR # comment (pull_request + workflow_dispatch are already trusted). Mirrors # the allowed_users input below, the in-container belt-and-suspenders check. if: >- github.event_name != 'issue_comment' || (github.event.issue.pull_request && (github.actor == 'steve' || github.actor == 'fizi' || github.actor == 'dazed')) uses: ./.gitea/workflows/review-reusable.yml # Least privilege: forward ONLY the secrets this swarm uses (cloud + Claude # Code + findings telemetry), not `secrets: inherit`. GITEA_TOKEN is auto. secrets: OLLAMA_CLOUD_API_KEY: ${{ secrets.OLLAMA_CLOUD_API_KEY }} CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} GADFLY_FINDINGS_URL: ${{ secrets.GADFLY_FINDINGS_URL }} GADFLY_FINDINGS_TOKEN: ${{ secrets.GADFLY_FINDINGS_TOKEN }} with: models: "minimax-m3:cloud,glm-5.2:cloud,glm-5.1:cloud,deepseek-v4-pro:cloud,nemotron-3-super:cloud,qwen3-coder:480b-cloud,claude-code/sonnet,claude-code/opus,claude-code/opus:max" specialists: "security,correctness,error-handling" provider_concurrency: "ollama-cloud=3,claude-code=2" provider_lens_concurrency: "ollama-cloud=3" timeout_secs: "600" max_steps: "14" allowed_users: "steve,fizi,dazed" timeout_minutes: 90