Skip to content

feat: autonomous agent pipeline — CI fixer, review responder, quality gate#51

Merged
microsasa merged 4 commits intomainfrom
feat/autonomous-agent-pipeline
Mar 15, 2026
Merged

feat: autonomous agent pipeline — CI fixer, review responder, quality gate#51
microsasa merged 4 commits intomainfrom
feat/autonomous-agent-pipeline

Conversation

@microsasa
Copy link
Owner

@microsasa microsasa commented Mar 14, 2026

Closes #53

What

Autonomous pipeline for agent-created PRs. Once merged + repo settings configured, agent PRs will be fully self-service:

Audit/Health Agent → Issue → Implementer PR (lint-clean, auto-merge)
  → CI passes + Copilot auto-reviews
    → CI fails? → CI Fixer agent (max 1 retry via label guard)
    → Copilot comments? → Review Responder addresses them
    → Copilot approves → Quality Gate evaluates quality + blast radius
      → Low/Medium impact → Quality Gate approves → Auto-merge
      → High impact → Flags for human review

Changes

Modified

  • issue-implementer.md — Run ruff/pyright before push, open non-draft PRs, auto-merge: true, add aw label, Python network access
  • ci.yml — Dispatch ci-fixer on check failure for aw-labeled PRs

New agents

  • ci-fixer.md — Fixes CI failures, label guard (ci-fix-attempted) prevents infinite loops
  • review-responder.md — Triggers on pull_request_review, addresses comments, resolves threads
  • quality-gate.md — Triggers on Copilot approval, evaluates code quality + blast radius, approves or blocks

Post-merge setup needed

  1. Enable auto-merge on repo
  2. Configure Copilot auto-review ruleset
  3. Update branch protection to require 2 approvals

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an autonomous “agent PR” pipeline in GitHub Actions (via gh-aw) to automatically fix CI failures, respond to review comments, and apply an approval/merge quality gate for agent-created PRs (labeled aw).

Changes:

  • Introduces new agent workflows: CI Fixer, Review Responder, and Quality Gate (plus compiled *.lock.yml workflows).
  • Updates CI to dispatch CI Fixer when CI fails on aw-labeled PRs.
  • Updates Issue Implementer to run ruff/pyright/pytest before committing, open non-draft PRs, label aw, and request auto-merge.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/review-responder.md Defines Review Responder agent prompt + safe-outputs for replying/resolving review threads and pushing fixes.
.github/workflows/review-responder.lock.yml Compiled workflow for Review Responder execution.
.github/workflows/quality-gate.md Defines Quality Gate agent prompt + safe-outputs for approving or commenting based on impact/quality.
.github/workflows/quality-gate.lock.yml Compiled workflow for Quality Gate execution.
.github/workflows/issue-implementer.md Enables auto-merge for agent PRs and tightens “run CI locally” + labeling/non-draft PR instructions.
.github/workflows/issue-implementer.lock.yml Compiled workflow updates reflecting Issue Implementer config changes.
.github/workflows/ci.yml Adds dispatch-ci-fixer job to trigger CI Fixer when CI fails on aw PRs.
.github/workflows/ci-fixer.md Defines CI Fixer agent prompt with label-guard to avoid infinite retries.
.github/workflows/ci-fixer.lock.yml Compiled workflow for CI Fixer execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot mentioned this pull request Mar 15, 2026
Sasa Junuzovic and others added 3 commits March 14, 2026 21:18
… gate

- Upgrade implementer: run lint/pyright before push, non-draft PRs, auto-merge enabled
- New ci-fixer agent: dispatched on CI failure for aw-labeled PRs, label guard for max retries
- New review-responder agent: triggers on pull_request_review, addresses comments, resolves threads
- New quality-gate agent: triggers on Copilot approval, evaluates quality + blast radius, approves or flags
- Update CI workflow: dispatch ci-fixer on check failure for aw PRs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- review-responder: cap at 10 threads, leave summary for overflow
- ci.yml: skip dispatch when ci-fix-attempted label already present
- quality-gate: use footer 'always' + include brief approval summary

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Agents need network access to astral.sh, pypi.org, conda.anaconda.org,
and repo.anaconda.com to run uv sync and install dependencies for CI
checks. Uses the 'python' ecosystem identifier.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsasa microsasa force-pushed the feat/autonomous-agent-pipeline branch from 3a116ae to 7b6993b Compare March 15, 2026 04:18
Prevents agents from posting to a tracking issue every time they
run but decide no action is needed. Reduces noise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsasa microsasa merged commit 0763703 into main Mar 15, 2026
5 checks passed
@microsasa microsasa deleted the feat/autonomous-agent-pipeline branch March 15, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autonomous agent pipeline — CI fixer, review responder, quality gate

2 participants