Skip to content

feat: add agents-verifier workflow for consumer repos#192

Merged
stranske merged 3 commits intomainfrom
feat/consumer-agents-verifier
Dec 26, 2025
Merged

feat: add agents-verifier workflow for consumer repos#192
stranske merged 3 commits intomainfrom
feat/consumer-agents-verifier

Conversation

@stranske
Copy link
Copy Markdown
Owner

Summary

Adds the Agents Verifier workflow to the consumer repo template so it runs post-merge in consumer repos.

Changes

  1. .github/workflows/reusable-agents-verifier.yml - New reusable workflow that:

    • Waits for CI workflows to complete on the merge commit
    • Builds verifier context from the merged PR and linked issues
    • Runs Codex in verifier mode to check acceptance criteria
    • Opens a follow-up issue if criteria weren't met
  2. templates/consumer-repo/.github/workflows/agents-verifier.yml - Thin caller that consumer repos use

Why

The verifier workflow was only in the Workflows repo, but it makes more sense in consumer repos because:

  • Original issues are created in the consumer repo
  • PRs run in the consumer repo
  • Follow-up issues should be created in the consumer repo

Usage

Consumer repos need to:

  1. Copy agents-verifier.yml to their .github/workflows/
  2. Ensure CODEX_AUTH_JSON secret is set

The workflow automatically triggers when PRs are merged.

- Create reusable-agents-verifier.yml that consumer repos can call
- Add agents-verifier.yml thin caller to consumer template
- Uses dual checkout pattern to get scripts from Workflows repo

The verifier runs post-merge on PRs to check if acceptance criteria
were met. If not, it opens a follow-up issue in the consumer repo.
Copilot AI review requested due to automatic review settings December 26, 2025 19:11
@agents-workflows-bot
Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #192. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 26, 2025

Automated Status Summary

Head SHA: 04ef412
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 77.97%
Baseline 0.00%
Delta +77.97%
Minimum 70.00%
Status ✅ Pass

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 26, 2025

🤖 Keepalive Loop Status

PR #192 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Gate success
Tasks 0/0 complete
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

Copy link
Copy Markdown
Contributor

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

This PR adds the Agents Verifier workflow to consumer repository templates, enabling automated post-merge verification of acceptance criteria. The workflow was previously only in the Workflows repository but is now being made available to consumer repos where the original issues and PRs exist.

Key Changes

  • Created a new reusable workflow that waits for CI completion, builds verification context from merged PRs and linked issues, runs Codex in verifier mode, and opens follow-up issues if criteria aren't met
  • Added a consumer template that calls the reusable workflow with appropriate permissions and configuration
  • Integrated metrics collection and reporting for verifier runs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/reusable-agents-verifier.yml New reusable workflow implementing the complete verifier logic including CI wait, context building, Codex execution, follow-up issue creation, and metrics collection
templates/consumer-repo/.github/workflows/agents-verifier.yml Consumer template that triggers on merged PRs and delegates to the reusable workflow with configured CI workflows to wait for

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

Add new workflow to:
- EXPECTED_NAMES in test_workflow_naming.py
- Reusable workflow table in WORKFLOWS.md
- Prose documentation in WORKFLOWS.md
- Primary workflows list in WORKFLOW_SYSTEM.md
@stranske stranske temporarily deployed to agent-high-privilege December 26, 2025 19:17 — with GitHub Actions Inactive
@github-actions github-actions bot added the autofix:clean Clean autofix label Dec 26, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 26, 2025

Status | ✅ autofix updates applied
History points | 1
Timestamp | 2025-12-26 19:22:47 UTC
Report artifact | autofix-report-pr-192
Remaining | 0
New | 0
No additional artifacts

- Add continue-on-error: true to Run verifier step so subsequent
  parsing and issue creation steps run even if Codex crashes
- Detect Codex failures and set verdict='error' to create follow-up
  issues for infrastructure failures, not just criteria failures
- Fix checks_run counting to use checkbox syntax (- [x]) instead of
  counting all bullet points, matching the intended behavior
- Update count_checkboxes regex to match both dash (-) and asterisk (*)
  list markers for consistency with the JavaScript implementation

Addresses comments from copilot-pull-request-reviewer.
@stranske stranske temporarily deployed to agent-high-privilege December 26, 2025 19:22 — with GitHub Actions Inactive
@github-actions github-actions bot added the autofix:clean-only Clean-only autofix label Dec 26, 2025
@stranske stranske merged commit eae80ca into main Dec 26, 2025
36 checks passed
@stranske stranske deleted the feat/consumer-agents-verifier branch December 26, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix:clean Clean autofix autofix:clean-only Clean-only autofix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants