Add daily agentic workflow audit agent for monitoring workflow health#1325
Merged
Add daily agentic workflow audit agent for monitoring workflow health#1325
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add daily audit for agentic workflow logs
Add daily agentic workflow audit agent for monitoring workflow health
Oct 7, 2025
pelikhan
reviewed
Oct 7, 2025
| cache-memory: true | ||
| bash: | ||
| - "make build" | ||
| - "./gh-aw logs*" |
|
|
||
| 1. **Download Logs from Last 24 Hours**: | ||
| ```bash | ||
| ./gh-aw logs --start-date -1d -o ./audit-logs |
Contributor
Author
There was a problem hiding this comment.
Added --verbose flag to the logs command in commit 81202ca.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a new agentic workflow that automatically audits all agentic workflows running in the repository, providing daily health monitoring, error detection, and trend analysis.
What does this workflow do?
The audit agent runs daily at midnight UTC (or can be manually triggered) and performs a comprehensive analysis of all agentic workflow runs from the last 24 hours. It:
gh-awbinary needed for log analysis./gh-aw logs --start-date -1d --verbosewith detailed outputKey Features
Persistent Knowledge Base
The workflow uses cache-memory to store audit history in
/tmp/cache-memory/, maintaining:This enables the agent to compare current findings with historical data, identify new vs. recurring issues, and track improvement or degradation over time.
Intelligent Reporting
Based on analysis, the agent intelligently decides the appropriate action:
Comprehensive Analysis
The audit covers:
Configuration
Security
The workflow follows security best practices:
Files Added
.github/workflows/audit-workflows.md(8.7KB) - Source workflow definition.github/workflows/audit-workflows.lock.yml(190KB) - Compiled GitHub Actions workflowTesting
The workflow is ready to run automatically and will help maintain the health and reliability of all agentic workflows in the repository.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.