📊 Lock File Statistics Analysis - November 2025 #3795
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.
-
📊 Agentic Workflow Lock File Statistics - 2025-11-13
This report provides comprehensive statistical analysis of all agentic workflow lock files in the gh-aw repository.
Executive Summary
82 lock files analyzed representing 17.2 MB of workflow definitions. The average workflow contains 6.7 jobs with 59 steps total, structured to provide safe, controlled agent execution with read-only permissions as the default pattern.
Overview
Full Report Details
File Size Distribution
Statistics:
opencode.lock.yml(22.8 KB)poem-bot.lock.yml(393.1 KB)Trigger Analysis
Most Popular Triggers
scheduleissuesissue_commentpull_requestpushworkflow_dispatchTrigger Patterns
The vast majority of lock files (79 files, 96.3%) don't explicitly define triggers in the analyzed sections, suggesting they use:
The 3 files that do define triggers are shared workflow components in
.github/workflows/shared/, which support multiple trigger types for flexibility.Safe Outputs Analysis
Safe outputs are the controlled mechanisms for agent workflows to interact with GitHub resources.
Safe Output Types Distribution
create-discussioncreate-pull-requestcreate-issueadd-commentcreate-pull-request-review-commentupdate-issueSafe Output Insights
create-discussion(30 workflows, 36.6%) - used for reporting and insightscreate-pull-request(21 workflows, 25.6%) - used for code changescreate-issue(20 workflows, 24.4%) - used for bug reports and tasksMultiple Safe Output Usage
15 workflows (18.3%) use multiple safe output types:
lockfile-stats.lock.yml- 6 types: create-discussion, create-issue, add-comment, create-pull-request, create-pull-request-review-comment, update-issuepoem-bot.lock.yml- 5 types: create-issue, add-comment, create-pull-request, create-pull-request-review-comment, update-issuepr-nitpick-reviewer.lock.yml- 4 types: create-discussion, add-comment, create-pull-request, create-pull-request-review-commentStructural Characteristics
Job Complexity
poem-bot.lock.yml)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:readrepository-projects:readissues:writeattestations:readchecks:readPermission Distribution
Security Insight: The overwhelming majority (99.3%) of permissions are read-only, demonstrating a security-first approach where agents primarily observe and report rather than directly modify resources.
Most Common Permission Sets
The standard permission triple appears in most workflows:
contents:read+issues:read+pull-requests:read= Base pattern for most workflowsactions:readfor workflows that need to analyze GitHub Actions dataTool & MCP Patterns
MCP Server Usage
mcp__githubmcp__playwrightmcp__context7mcp__deepwikimcp__arxivMCP Server Insights:
mcp__github: Universal - present in 78 workflows (95.1%)playwright(3),context7(1),deepwiki(1),arxiv(1) for specific research/testing needsInteresting Findings
1. Consistency in Structure
The lock files show remarkable consistency:
2. Size Extremes
Smallest workflow (
shared/opencode.lock.ymlat 23 KB):Largest workflow (
poem-bot.lock.ymlat 393 KB):3. Workflow Purposes
By analyzing safe outputs, workflows break down into categories:
create-discussioncreate-pull-requestcreate-issueadd-comment4. Security Patterns
issues:write) appear in only 2 workflows5. Shared Components
3 files in
.github/workflows/shared/serve as reusable components:Complexity Distribution
Complexity Insight: Most workflows (48, 58.5%) fall into the medium complexity range, suggesting a sweet spot of 4-7 jobs provides sufficient capability without excessive complexity.
Recommendations
1. Size Optimization
2. Safe Output Patterns
3. Permission Model
4. MCP Integration
5. Complexity Management
Methodology
/tmp/gh-aw/cache-memory/for script persistence.github/workflows/**/*.lock.ymlGenerated by Lockfile Statistics Analysis Agent on 2025-11-13T03:30:23.598962
Beta Was this translation helpful? Give feedback.
All reactions