You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analysis Date: 2025-11-15 Focus Area: Workflow Compilation Observability & Error Recovery Strategy Type: Custom Custom Area: Yes - This focus area is specifically tailored to gh-aw's unique nature as a workflow compiler that transforms markdown to GitHub Actions YAML.
Executive Summary
This analysis focuses on the observability and recoverability of workflow compilation failures - a critical user experience area unique to gh-aw as a compiler tool. Given that users write workflows in natural language markdown that get compiled to YAML, the quality of error messages, validation feedback, and recovery guidance directly impacts developer productivity and satisfaction.
Key Findings: The repository shows strong foundations in validation architecture (8,636 lines of validation code across 10+ domain-specific files), excellent error message examples (147 messages include concrete examples), and good troubleshooting documentation. However, there are significant opportunities to improve error recovery guidance, contextual help, and progressive enhancement of error messages.
Impact: Better compilation observability will reduce time-to-resolution for workflow errors, lower the barrier to entry for new users, and decrease support burden on maintainers.
Rationale for Custom Focus Area: Unlike typical code quality or documentation reviews, this area addresses gh-aw's unique challenge: users express complex GitHub Actions workflows in natural language, which must be compiled and validated. The quality of compilation feedback directly determines whether users can successfully author and debug workflows. This is repository-specific because few projects combine natural language authoring, schema validation, and GitHub Actions compilation.
Import/include issues (file not found, path errors)
Under-Covered Topics:
MCP server configuration errors
Engine-specific limitations
Network permission errors
Safe output configuration issues
Validation timing (when does what get validated?)
🤖 Tasks for Copilot Agent
NOTE TO PLANNER AGENT: The following tasks are designed for GitHub Copilot agent execution. Please split these into individual work items for Claude to process.
Improvement Tasks
The following code regions and tasks should be processed by the Copilot agent. Each section is marked for easy identification by the planner agent.
Task 1: Add Documentation Links to Error Messages
Priority: High Estimated Effort: Medium Focus Area: Error Recovery Guidance
Description:
Enhance error messages throughout the validation system to include documentation links for complex configuration issues. Focus on errors related to MCP servers, engines, network permissions, and safe outputs where users need detailed guidance beyond a simple example.
Acceptance Criteria:
MCP configuration errors link to /guides/mcps/ documentation
Engine errors link to /reference/engines/ documentation
Network permission errors link to /reference/network/ documentation
Safe output errors link to /reference/safe-outputs/ documentation
Links use format: See: (redacted)}
Documentation links added to at least 20 high-impact error messages
Review error messages in validation files and add contextual documentation links to help users recover from compilation failures. Focus on complex configuration areas where users most frequently need additional guidance beyond the inline example.
Prioritize:
1. MCP server configuration errors (pkg/workflow/mcp_config_validation.go)
2. Engine validation errors (pkg/workflow/engine_validation.go)
3. Network permission errors (pkg/workflow/engine_network.go)
4. Safe output configuration errors (pkg/workflow/safe_*.go)
Follow the existing error message format:
-[What's wrong] + [What's expected] + [Documentation link] + [Example]
Ensure all documentation paths are valid and point to existing pages in docs/src/content/docs/.
Task 2: Enhance Compilation Summary with Error Categorization
Priority: High Estimated Effort: Medium Focus Area: Compilation Observability
Description:
Improve the compilation summary output to categorize errors and provide actionable insights. Instead of just showing counts, analyze error types and suggest next actions based on the most common failure patterns.
Enhance the printCompilationSummary function to provide categorized error reporting:
1. Add error categorization:
- Track error types during compilation
- Categorize into: [schema], [validation], [network], [mcp], [safe-output], [other]2. Improve summary output format:
- Show breakdown: "✗ 5 errors: 3 schema, 2 validation"
- Highlight most common error type
- Suggest action: "💡 Tip: Run 'gh aw compile --help frontmatter' for schema reference"
3. Add to CompilationStats structure:
- ErrorCategories map[string]int
- MostCommonCategory string
4. Maintain JSON output compatibility for programmatic usage
Reference console package for formatting: pkg/console/formatting.go
Task 3: Implement Fuzzy Suggestion for Common Typos
Priority: Medium Estimated Effort: Small Focus Area: Interactive Error Resolution
Description:
Add "Did you mean?" suggestions for common typos in engine names, permission names, and tool names. Use simple Levenshtein distance or string similarity to suggest corrections.
Acceptance Criteria:
Engine typos suggest closest valid option (e.g., "copilott" → "Did you mean 'copilot'?")
Add fuzzy matching suggestions to validation errors:
1. Create helper function in pkg/workflow/suggestions.go:
- func suggestClosestMatch(input string, validOptions []string) string
- Use simple string similarity (Levenshtein distance or similar)
- Return suggestion if similarity > 0.7
2. Integrate with existing validation:
- Engine validation: Suggest closest engine name
- Permission validation: Suggest valid permission names
- MCP tool validation: Suggest registered MCP tools
3. Update error messages to include suggestions:
- "invalid engine: copilott. Did you mean 'copilot'? Valid engines are: ..."
4. Keep existing example format intact, just prepend the suggestion
Consider using: github.com/agnivade/levenshtein for simple implementation
Task 4: Create Troubleshooting Guide for MCP Configuration
Priority: Medium Estimated Effort: Medium Focus Area: Documentation Enhancement
Description:
Create comprehensive troubleshooting documentation specifically for MCP server configuration errors, which are currently under-documented but frequently encountered by users based on error message analysis.
Acceptance Criteria:
New file: docs/src/content/docs/troubleshooting/mcp-configuration.md
Covers common MCP errors: missing command, invalid type, HTTP vs stdio confusion
Includes working examples for each common error scenario
Cross-referenced from existing MCP guides
Follows Diátaxis framework (how-to guide format)
Code Region:docs/src/content/docs/troubleshooting/ (new file)
Create a comprehensive MCP configuration troubleshooting guide:
1. Document structure (following Diátaxis how-to format):
- Title: "Troubleshooting MCP Server Configuration"
- Sections:
* Common MCP Configuration Errors
* HTTP vs Stdio Transport Confusion
* Missing Required Properties
* Container vs Command Issues
* Engine Compatibility Problems
2. For each error type:
- Symptom: What error message users see
- Cause: Why this error occurs
- Solution: Step-by-step fix with code examples
- Related: Links to relevant reference docs
3. Include working examples:
- Correct stdio MCP configuration
- Correct HTTP MCP configuration
- Correct container-based MCP
- Engine-specific MCP limitations
4. Cross-reference from:
- docs/src/content/docs/guides/mcps.md
- docs/src/content/docs/troubleshooting/common-issues.md
Use existing troubleshooting docs as template for style and format.
Task 5: Add Verbose Error Context Flag
Priority: Low Estimated Effort: Large Focus Area: Progressive Error Enhancement
Description:
Implement a --error-context flag that provides beginner-friendly explanations for validation errors, while keeping default output concise for experienced users. This enables progressive disclosure of error information.
Acceptance Criteria:
New flag: --error-context or -c in compile command
When enabled, shows additional context for each error
Context includes: Why this matters, common causes, related concepts
Add progressive error context feature:
1. Add CLI flag to compile command:
- Name: --error-context
- Short: -c
- Description: "Show additional context and explanations for errors"
2. Update Compiler to support context mode:
- Add ErrorContext bool to CompileConfig
- Pass through to validation functions
- Store context metadata with ValidationResult
3. Enhance error output when flag is enabled:
- Default: "invalid engine: copilott. Valid engines are: copilot, claude, codex, custom"
- With context: "invalid engine: copilott. Valid engines are: copilot, claude, codex, custom
Why this matters: The engine determines which AI service processes your workflow.
Common causes: Typos in engine name, using unsupported engine version.
Learn more: (redacted)"
4. Maintain backward compatibility:
- Default behavior unchanged
- JSON output includes context in separate field
This is a larger effort - consider phased implementation starting with high-impact validation errors.
📊 Historical Context
Previous Focus Areas
Date
Focus Area
Type
Custom
Key Outcomes
2025-11-15
Workflow Compilation Observability
Custom
Y
First analysis run - established baseline metrics for error observability
🎯 Recommendations
Immediate Actions (This Week)
Add documentation links to top 20 error messages - Priority: High - Quick wins with immediate user value
Enhance compilation summary with error categorization - Priority: High - Better batch compilation feedback
Short-term Actions (This Month)
Implement fuzzy typo suggestions - Priority: Medium - Improves user experience for common mistakes
Create MCP troubleshooting guide - Priority: Medium - Fills documentation gap in frequently problematic area
Long-term Actions (This Quarter)
Add error context mode - Priority: Low - Progressive enhancement for different user skill levels
Build error message taxonomy - Track which errors are most common to prioritize improvements
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🎯 Repository Quality Improvement Report - Workflow Compilation Observability
Analysis Date: 2025-11-15
Focus Area: Workflow Compilation Observability & Error Recovery
Strategy Type: Custom
Custom Area: Yes - This focus area is specifically tailored to gh-aw's unique nature as a workflow compiler that transforms markdown to GitHub Actions YAML.
Executive Summary
This analysis focuses on the observability and recoverability of workflow compilation failures - a critical user experience area unique to gh-aw as a compiler tool. Given that users write workflows in natural language markdown that get compiled to YAML, the quality of error messages, validation feedback, and recovery guidance directly impacts developer productivity and satisfaction.
Key Findings: The repository shows strong foundations in validation architecture (8,636 lines of validation code across 10+ domain-specific files), excellent error message examples (147 messages include concrete examples), and good troubleshooting documentation. However, there are significant opportunities to improve error recovery guidance, contextual help, and progressive enhancement of error messages.
Impact: Better compilation observability will reduce time-to-resolution for workflow errors, lower the barrier to entry for new users, and decrease support burden on maintainers.
Full Analysis Report
Focus Area: Workflow Compilation Observability & Error Recovery
Current State Assessment
Rationale for Custom Focus Area: Unlike typical code quality or documentation reviews, this area addresses gh-aw's unique challenge: users express complex GitHub Actions workflows in natural language, which must be compiled and validated. The quality of compilation feedback directly determines whether users can successfully author and debug workflows. This is repository-specific because few projects combine natural language authoring, schema validation, and GitHub Actions compilation.
Metrics Collected:
Findings
Strengths
.invalid.ymlfiles for inspectionAreas for Improvement
1. Error Recovery Guidance (High Impact)
2. Contextual Help Links (High Impact)
3. Progressive Error Enhancement (Medium Impact)
--help enginefor detailed explanation4. Compilation Summary Statistics (Medium Impact)
5. Interactive Error Resolution (Low Impact)
engine: copilottDetailed Analysis
Error Message Quality Analysis
Excellent Examples (Following error message style guide):
Pattern: [What's wrong] + [What's expected] + [Example]
Opportunities for Enhancement:
Compilation Feedback Flow
Current Flow:
gh aw compileEnhanced Flow (Proposed):
gh aw compileDocumentation Coverage Analysis
Well-Covered Topics:
Under-Covered Topics:
🤖 Tasks for Copilot Agent
NOTE TO PLANNER AGENT: The following tasks are designed for GitHub Copilot agent execution. Please split these into individual work items for Claude to process.
Improvement Tasks
The following code regions and tasks should be processed by the Copilot agent. Each section is marked for easy identification by the planner agent.
Task 1: Add Documentation Links to Error Messages
Priority: High
Estimated Effort: Medium
Focus Area: Error Recovery Guidance
Description:
Enhance error messages throughout the validation system to include documentation links for complex configuration issues. Focus on errors related to MCP servers, engines, network permissions, and safe outputs where users need detailed guidance beyond a simple example.
Acceptance Criteria:
/guides/mcps/documentation/reference/engines/documentation/reference/network/documentation/reference/safe-outputs/documentationSee: (redacted)}Code Region:
pkg/workflow/*_validation.go,pkg/workflow/mcp_config*.go,pkg/workflow/engine*.goTask 2: Enhance Compilation Summary with Error Categorization
Priority: High
Estimated Effort: Medium
Focus Area: Compilation Observability
Description:
Improve the compilation summary output to categorize errors and provide actionable insights. Instead of just showing counts, analyze error types and suggest next actions based on the most common failure patterns.
Acceptance Criteria:
--helpcommand or documentation based on error patternsCode Region:
pkg/cli/compile_command.go(CompilationStats, printCompilationSummary)Task 3: Implement Fuzzy Suggestion for Common Typos
Priority: Medium
Estimated Effort: Small
Focus Area: Interactive Error Resolution
Description:
Add "Did you mean?" suggestions for common typos in engine names, permission names, and tool names. Use simple Levenshtein distance or string similarity to suggest corrections.
Acceptance Criteria:
Code Region:
pkg/workflow/engine_validation.go,pkg/workflow/permissions.go,pkg/workflow/mcp_config_validation.goTask 4: Create Troubleshooting Guide for MCP Configuration
Priority: Medium
Estimated Effort: Medium
Focus Area: Documentation Enhancement
Description:
Create comprehensive troubleshooting documentation specifically for MCP server configuration errors, which are currently under-documented but frequently encountered by users based on error message analysis.
Acceptance Criteria:
docs/src/content/docs/troubleshooting/mcp-configuration.mdCode Region:
docs/src/content/docs/troubleshooting/(new file)Task 5: Add Verbose Error Context Flag
Priority: Low
Estimated Effort: Large
Focus Area: Progressive Error Enhancement
Description:
Implement a
--error-contextflag that provides beginner-friendly explanations for validation errors, while keeping default output concise for experienced users. This enables progressive disclosure of error information.Acceptance Criteria:
--error-contextor-cin compile commandCode Region:
pkg/cli/compile_command.go,pkg/workflow/compiler.go📊 Historical Context
Previous Focus Areas
🎯 Recommendations
Immediate Actions (This Week)
Short-term Actions (This Month)
Long-term Actions (This Quarter)
📈 Success Metrics
Track these metrics to measure improvement in Workflow Compilation Observability:
Next Steps
Generated by Repository Quality Improvement Agent
Focus Area Selection Strategy: Custom (60% probability) - Tailored to gh-aw's unique workflow compilation challenges
Beta Was this translation helpful? Give feedback.
All reactions