📊 Agentic Workflow Lock File Statistics - 2025-10-18 #1916
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it was created by an agentic workflow more than 1 month 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-10-18
Executive Summary
This comprehensive analysis examines all
.lock.ymlfiles in the.github/workflows/directory to identify usage patterns, structural characteristics, and best practices for agentic workflows.File Size Distribution
Notable Files
Smallest Files:
test-post-steps.lock.yml: 88.0 KBsmoke-opencode.lock.yml: 123.9 KBsmoke-genaiscript.lock.yml: 125.4 KBissue-classifier.lock.yml: 147.7 KBsmoke-codex.lock.yml: 159.8 KBLargest Files:
poem-bot.lock.yml: 343.4 KB ⭐ (Largest)q.lock.yml: 288.2 KBmcp-inspector.lock.yml: 261.6 KBunbloat-docs.lock.yml: 260.8 KBscout.lock.yml: 259.7 KBTrigger Analysis
Most Popular Triggers
Key Insight: 82.9% of workflows support manual triggering via
workflow_dispatch, indicating a strong emphasis on on-demand execution. 34.3% also have scheduled automation.Schedule Patterns
0 10 * * *0 9 * * 00 9 * * 1-50 9 * * 10 9 * * *0 3 * * *0 11 * * *0 10 * * 10 0 * * *Pattern: Most scheduled workflows run during morning hours (UTC 9:00-11:00), with some variation for different time zones. Daily schedules are more common than weekly.
Example Workflows by Trigger Type
workflow_dispatch (29 workflows): artifacts-summary, audit-workflows, cli-version-checker, copilot-agent-analysis, daily-doc-updater, daily-news, dev, duplicate-code-detector, and 21 more...
schedule (12 workflows): artifacts-summary, audit-workflows, cli-version-checker, copilot-agent-analysis, daily-doc-updater, daily-news, duplicate-code-detector, example-workflow-analyzer, and more...
issues (5 workflows): issue-classifier, notion-issue-summary, pdf-summary, plan, scout
pull_request (3 workflows): changeset-generator, smoke-claude, tidy
Safe Outputs Analysis
Safe Output Types Distribution
Key Findings:
create-pull-requestsafe outputs in this repositorySafe Output Usage Patterns
Heavy Users (workflows with multiple safe outputs):
lockfile-stats.lock.yml: 8 discussions, 4 issues, 4 comments (16 total!)copilot-agent-analysis.lock.yml: 5 discussionsci-doctor.lock.yml: 4 issues, 4 commentsmcp-inspector.lock.yml: 3 discussions, 5 commentsdev.lock.yml: 4 issuesSingle Purpose (workflows with one safe output type):
Structural Characteristics
Job Complexity
Distribution Analysis:
Typical Lock File Structure
Based on statistical analysis, a typical
.lock.ymlfile has:Permission Patterns
Most Common Permissions
Permission Distribution
permissions: {}at workflow level, then grant specific permissions per jobSecurity Pattern: The repository follows best practice of granular permissions—empty permissions at the workflow level, then specific grants per job based on need.
Tool & MCP Patterns
Most Used MCP Servers
GitHub MCP Tool Usage
Most Common GitHub MCP Tools:
All 30 workflows using the GitHub MCP server have access to comprehensive tool sets including:
search_code,search_issues,search_pull_requests,search_repositories,search_users,search_orgsget_issue,get_commit,get_pull_request,list_issues,list_commits,list_workflowsget_workflow_run,list_workflow_runs,list_workflow_jobs,get_job_logsSpecial MCP Configurations:
Tool Allowlist Patterns
Analyzing common tool configurations:
Interesting Findings
Workflow Dispatch Dominance: 82.9% of workflows support manual triggering, suggesting this repository values on-demand agent execution over purely automated workflows.
Safe Output Philosophy: The repository heavily favors
create-issue(52 instances) andadd-comment(45 instances) overcreate-discussion(34 instances), suggesting preference for issue-based tracking over forum-style discussions.Size Consistency: 94.3% of lock files fall between 100-300 KB, indicating remarkably consistent workflow complexity across the repository.
Job Orchestration: The average of 7.8 jobs per workflow with 64 steps suggests sophisticated multi-stage pipelines with clear separation of concerns (pre-activation → activation → agent → detection → safe outputs).
GitHub MCP Ubiquity: 85.7% of workflows use the GitHub MCP server, making it the de facto standard for repository operations.
Schedule Timing Strategy: Scheduled workflows predominantly run during morning hours (UTC 9:00-11:00), likely to provide fresh insights at the start of business hours across multiple time zones.
Granular Permissions: The pattern of empty workflow-level permissions with job-specific grants demonstrates security-conscious design.
Heavy Safe Output Users: The
lockfile-statsworkflow stands out with 16 total safe outputs (8 discussions, 4 issues, 4 comments), indicating highly interactive agent behavior.Historical Trends
This is the baseline analysis. Future runs will compare against this data to identify trends in:
Recommendations
Standardize Cron Schedules: Consider consolidating the 9 different cron patterns into 2-3 standard time slots to simplify schedule management and reduce workflow run clustering.
Document Safe Output Strategy: Create guidelines on when to use
create-issuevscreate-discussionvsadd-commentbased on the observed patterns.Optimize Large Workflows: Investigate the 5 largest workflows (>260 KB) to identify opportunities for modularization or optimization.
Timeout Configuration: Most workflows don't specify timeouts. Consider adding explicit timeout configurations based on workflow complexity to prevent runaway executions.
Leverage Workflow Templates: With 94.3% of files in the 100-300 KB range and similar structures, create workflow templates to standardize common patterns.
MCP Server Expansion: Only 3 MCP servers are used. Consider evaluating additional MCP servers for specialized tasks (e.g., Slack for notifications, database MCPs for data operations).
Permission Audits: Regularly audit the 198 write permission grants to ensure they follow least-privilege principles.
Concurrency Groups: 23 workflows use the standard group pattern
gh-aw-${{ github.workflow }}. Consider documenting this as a best practice.Methodology
Data Collection
/tmp/gh-aw/cache-memory/for script persistence and data storage.github/workflows/*.lock.ymlAnalysis Scripts
analyze_lockfiles.sh: Primary data extraction scriptgenerate_stats.sh: Statistical summary generationdetailed_analysis.sh: Detailed pattern analysisMetrics Collected
Validation
Generated by Lockfile Statistics Analysis Agent on 2025-10-18
Analysis took ~5 minutes, processing 7.31 MB across 35 lock files
Scripts and data available in
/tmp/gh-aw/cache-memory/Beta Was this translation helpful? Give feedback.
All reactions