馃搳 Agentic Workflow Lock File Statistics - 2025-12-18 #6872
Closed
Replies: 1 comment
|
This discussion was automatically closed because it was created by an agentic workflow more than 3 days ago. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This comprehensive analysis examines 237 lock files across the githubnext/gh-aw repository to understand the structure, patterns, and characteristics of agentic workflows in production.
Executive Summary
workflow_dispatch(204 workflows)Full Report Details
File Size Distribution
The lock files in this repository vary significantly in size, reflecting the complexity and scope of different agentic workflows.
Statistics:
arxiv.lock.yml(80.2 KB)poem-bot.lock.yml(692.6 KB)Trigger Analysis
Most Popular Triggers
Workflow triggers determine when agentic workflows execute. The analysis reveals strong preferences for scheduled and manual execution patterns.
workflow_dispatchschedulepull_requestissue_commentissuespull_request_review_commentdiscussiondiscussion_commentCommon Trigger Combinations
Many workflows combine multiple triggers for flexibility:
schedule + workflow_dispatch: 134 workflows (56.5%)workflow_dispatch: 38 workflows (16.0%)pull_request + schedule + workflow_dispatch: 14 workflows (5.9%)discussion + discussion_comment + issue_comment + issues + pull_request + pull_request_review_comment: 6 workflows (2.5%)issues: 5 workflows (2.1%)pull_request + workflow_dispatch: 4 workflows (1.7%)issue_comment: 4 workflows (1.7%)workflow_run: 4 workflows (1.7%)issue_comment + issues + workflow_dispatch: 2 workflows (0.8%)workflow_call: 2 workflows (0.8%)Schedule Patterns
150 workflows use cron-based scheduling. Here are the most common schedules:
0 9 * * *0 14 * * 1-50 8 * * *0 13 * * 1-50 11 * * 1-50 0,6,12,18 * * *0 9 * * 10 10 * * 1-50 3 * * *0 9 * * 1-50 15 * * 1-50 18 * * *0 0 * * *0 */6 * * *0 0,7,13,19 * * *Key Insights:
Structural Characteristics
Job Complexity
Agentic workflows in this repository exhibit consistent structural patterns:
Distribution of Jobs per Workflow
Average Lock File Structure
Based on statistical analysis, a typical .lock.yml file has:
schedule+workflow_dispatch(most common pattern)Permission Patterns
Lock files explicitly declare GitHub API permissions for security. The analysis reveals:
contents: readactions: readissues: writeSecurity Note: Most workflows operate with minimal
contents:readpermissions, following the principle of least privilege.MCP Servers & Tool Patterns
Agentic workflows leverage Model Context Protocol (MCP) servers to extend agent capabilities:
githubbrave-searchKey Insight: The
githubMCP server is overwhelmingly the most used, appearing in virtually every workflow for GitHub API interactions.Timeout Configuration
Concurrency Patterns
Workflows use concurrency groups to prevent multiple simultaneous runs:
gh-aw-${{ github.workflow }}gh-aw-${{ github.workflow }}-${{ github.event.issue.number }}gh-aw-${{ github.workflow }}-${{ github.ref }}tidy-${{ github.ref }}${{ github.workflow }}-${{ github.ref }}-clocloMost Common Pattern:
gh-aw-${{ github.workflow }}- ensures only one instance of each workflow runs at a time globally.Interesting Findings
High Manual Intervention Rate: 86.1% of workflows support manual triggering, indicating these agents are designed for on-demand execution alongside automation.
Scheduled Automation Dominance: 150 workflows (63.3%) run on schedules, with a strong preference for business hours and weekday execution.
Consistent Timeout Strategy: 99.8% standardization on 10-minute timeouts suggests careful tuning for agent response times.
File Size Growth: The largest lock file (693 KB) is 8.6x larger than the smallest (80.2 KB), reflecting a wide range of workflow complexity.
Structural Consistency: Despite size variations, workflows maintain consistent structure (~6 jobs, ~10 steps per job), suggesting established patterns and best practices.
GitHub-Centric Operations: The GitHub MCP server appears 7924 times across workflows, highlighting that most agentic workflows operate primarily within the GitHub ecosystem.
Test Infrastructure: 7 lock files are in test directories, demonstrating significant investment in workflow testing.
Recommendations
Based on this analysis, here are recommendations for agentic workflow development:
Size Optimization: Consider splitting workflows exceeding 500 KB into smaller, focused workflows for better maintainability.
Schedule Coordination: With many workflows scheduled at popular times (9 AM, 2 PM), consider staggering schedules to reduce concurrent execution pressure.
Timeout Tuning: The consistent 10-minute timeout works well, but consider extending for known long-running operations or reducing for quick checks.
Trigger Patterns: The combination of
schedule+workflow_dispatchprovides excellent flexibility - recommend as standard pattern for new workflows.Documentation: With 237 unique workflows, maintaining a workflow inventory/catalog would improve discoverability and reduce duplication.
Safe Outputs: Consider standardizing on safe output patterns across workflows for consistent results handling.
Methodology
.lock.ymlfiles in.github/workflows//tmp/gh-aw/cache-memory/for reuseRepository Structure
Lock files are organized as:
.github/workflows/*.lock.yml(228 files).github/workflows/tests/*.lock.yml(7 files).github/workflows/shared/**/*.lock.yml(2 files)Analysis generated by Lockfile Statistics Analysis Agent on 2025-12-18 at 14:57 UTC
Data source: All .lock.yml files in githubnext/gh-aw repository
All reactions