📊 Agentic Workflow Lock File Statistics - November 22, 2025 #4535
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it was created by an agentic workflow more than 1 week ago. |
Beta Was this translation helpful? Give feedback.
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 analysis examined 91 lockfiles totaling 21.6 MB of workflow definitions in the gh-aw repository. Key findings reveal a mature ecosystem with strong security patterns, consistent structure averaging 6.3 jobs and 60 steps per workflow, and a clear preference for discussion-based outputs (30 workflows) as the primary agent communication mechanism.
The workflows demonstrate security-first design with 98% read-only permissions, minimal write access channeled through safe outputs, and near-universal adoption (95%) of the GitHub MCP server for controlled API access.
Full Report Details
File Size Distribution
Statistics:
shared/mcp/arxiv.lock.yml(80.2 KB, 3 jobs, 29 steps)poem-bot.lock.yml(420.6 KB, 14 jobs, 101 steps)Trigger Analysis
Explicit Trigger Patterns
Only 2 workflows (2.2%) define explicit triggers - these are shared reusable workflow components in
.github/workflows/shared/designed to respond to multiple event types:scheduleissuesissue_commentpull_requestpushworkflow_dispatchTrigger Combination Pattern: Both files use the complete set:
issue_comment + issues + pull_request + push + schedule + workflow_dispatchfor maximum flexibility.Implicit Trigger Model
The remaining 89 workflows (97.8%) use implicit triggering through:
This pattern separates trigger configuration from workflow logic, enabling more flexible deployment and testing.
Schedule Patterns
48 unique cron schedules found across workflows:
0 0,6,12,18 * * *0 9 * * *0 13 * * 1-50 10 * * 1-50 9 * * 1-50 8 * * *0 0 * * *0 15 * * 10 9 * * 10 6 * * 00/10 * * * *Key Insights:
Safe Outputs Analysis
Safe outputs are the controlled mechanisms for agent workflows to interact with GitHub resources. 71 workflows (78%) use at least one safe output type.
Safe Output Types Distribution
create-discussionadd-commentcreate-pull-requestcreate-issuecreate-pull-request-review-commentupdate-issueSafe Output Insights
Most Popular Output:
create-discussion(30 workflows, 33%)Code Modification:
create-pull-request(20 workflows, 22%)Task Creation:
create-issue(19 workflows, 21%)Interactive Feedback:
add-comment(21 workflows, 23%)Multiple Safe Output Usage
14 workflows (15.4%) use multiple safe output types for flexible communication:
Top Multi-Output Workflows:
poem-bot.lock.yml- 5 types: create-discussion, create-issue, add-comment, create-pull-request, update-issueai-triage-campaign.lock.yml- 4 typessafe-output-health.lock.yml- 4 typesFiles Without Safe Outputs: 20 workflows (22.0%) - typically test workflows, utilities, or workflows that perform read-only analysis without publishing results.
Discussion Categories
For the 30 workflows using
create-discussion, the category distribution is:auditsAuditsGeneralgeneralartifactsdevannouncementsauditdaily-newsresearchsecurityInsight: The "audits" category (12 + 3 + 1 = 16 workflows, 53%) dominates, indicating audit and analysis workflows are the primary use case for discussions.
Structural Characteristics
Job Complexity
poem-bot.lock.yml)poem-bot.lock.yml)Complexity Distribution
Complexity Insight: The medium complexity tier (4-7 jobs, 74%) represents the sweet spot, providing sufficient capability for most workflows without excessive complexity. Simple workflows are utilities/tests, while complex workflows handle sophisticated multi-phase operations.
Average Lock File Profile
Based on statistical analysis, a typical
.lock.ymlfile has:Permission Patterns
Most Common Permissions
contents:readpull-requests:readissues:readactions:readdiscussions:readsecurity-events:readissues:writerepository-projects:readrepository-projects:writecontents:writePermission Distribution
Security Insight: The overwhelming majority (98%) of permissions are read-only, demonstrating a security-first approach where agents primarily observe, analyze, and report rather than directly modify resources. Write operations are channeled through safe outputs, providing review and audit trails.
Most Common Permission Sets
The standard permission triple appears in most workflows:
contents:read+issues:read+pull-requests:read(67 workflows)actions:read(38 workflows need workflow/run data)discussions:read(8 workflows need discussion access)Permission Evolution: Files rarely need write permissions because:
Tool & MCP Patterns
MCP Server Usage
mcp__githubmcp__playwrightmcp__context7mcp__deepwikimcp__arxivMCP Server Insights:
mcp__githubpresent in 86 workflows (95%) - the default MCP serverNo MCP Servers: 5 workflows (5.5%) operate without MCP servers - these are typically simple test workflows or utilities that don't need external API access.
Timeout Configuration
Timeout Insights:
Interesting Findings
1. Remarkable Structural Consistency
Lock files show high consistency across the repository:
This consistency suggests:
2. Size and Complexity Correlation
Smallest Workflow (
shared/mcp/arxiv.lock.ymlat 80.2 KB):Largest Workflow (
poem-bot.lock.ymlat 420.6 KB):Size-Complexity Relationship: File size roughly correlates with job count and step count (r≈0.8), suggesting size reflects genuine complexity rather than verbosity.
3. Workflow Purpose Categories
By analyzing safe outputs, workflows break into clear categories:
Insight: The repository contains more analysis/reporting workflows (30) than action workflows (20 PRs + 19 issues), confirming the read-heavy, observe-and-report design philosophy.
4. Security Patterns
Defense-in-Depth Approach:
packages:write,secrets:write, etc.Write Permission Audit:
issues:write: 3 workflows (justified for issue management bots)repository-projects:write: 1 workflow (project board automation)contents:write: 1 workflow (likely for specific automation)All write permissions are justifiable and limited to specific use cases.
5. Shared Component Architecture
3 files in
.github/workflows/shared/serve as reusable components:This suggests a modular architecture where common functionality is extracted into shared components, reducing duplication and improving maintainability.
6. Schedule Diversity and Purpose
48 unique cron schedules show careful timing consideration:
Schedule Philosophy: Timing reflects human workflow - reports appear during work hours when developers are active.
7. Discussion-First Communication
Discussion posts (30 workflows) outnumber:
Why Discussions Win:
This represents a mature approach to agent communication - using the right channel for each content type.
8. Job Granularity Patterns
Average 9.6 steps per job suggests workflows break tasks into:
Common Job Structure:
This modular design enables:
Recommendations
1. Size Optimization
Current State: Average 243 KB is reasonable for complex workflows.
Recommendations:
2. Safe Output Standardization
Current State: Discussion-first pattern is working well.
Recommendations:
3. Permission Model
Current State: Excellent security-first design (98% read-only).
Recommendations:
4. MCP Integration
Current State: Near-universal GitHub MCP adoption (95%).
Recommendations:
5. Complexity Management
Current State: 74% in optimal 4-7 job range.
Recommendations:
6. Schedule Coordination
Current State: 48 schedules, some potential overlap.
Recommendations:
7. Timeout Tuning
Current State: Conservative defaults (67% use 10-20 min).
Recommendations:
8. Testing and Utilities
Current State: 20 workflows without safe outputs (likely tests).
Recommendations:
test-*.lock.yml)Methodology
/tmp/gh-aw/cache-memory/for script persistence and historical data.github/workflows/**/*.lock.yml(recursive)comprehensive_lockfile_analysis_2025-11-22.pyAnalysis Techniques
Limitations
on:sections (89 workflows use implicit)Historical Trends
Comparing to cached historical data (October 2025):
Insights:
Generated by Lockfile Statistics Analysis Agent on 2025-11-22T03:22:48
Beta Was this translation helpful? Give feedback.
All reactions