🎯 Repository Quality Improvement - Workflow Error Message Quality [2025-11-15] #4071
Closed
Replies: 2 comments 1 reply
-
|
/plan |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
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.
-
🎯 Repository Quality Improvement Report - Workflow Error Message Quality
Analysis Date: 2025-11-15
Focus Area: Workflow Error Message Quality and Developer Experience
Strategy Type: Custom
Custom Area: Yes - This focus area addresses a critical quality aspect unique to gh-aw as a workflow compilation tool where error messages are the primary interface for developers to understand compilation failures.
Executive Summary
The analysis reveals that gh-aw has established an excellent error message style guide (
.github/instructions/error-messages.instructions.md) with clear templates and examples. However, compliance is currently at only 8% - only 20 out of 237 error messages follow the recommended format of providing "what's wrong + what's expected + example."While the codebase demonstrates sophisticated error handling infrastructure with 824 console formatting calls, 259 error generation points, and comprehensive validation test coverage (7,682 lines), the vast majority of error messages lack the actionable examples that would significantly improve the developer experience when workflow compilation fails.
This represents a high-impact improvement opportunity: enhancing error message quality would directly reduce debugging time, improve onboarding, and increase confidence in the tool without requiring major architectural changes.
Full Analysis Report
Focus Area: Workflow Error Message Quality and Developer Experience
Current State Assessment
Metrics Collected:
Findings
Strengths
Excellent Error Message Style Guide: The
.github/instructions/error-messages.instructions.mdfile provides comprehensive guidance with clear templates, examples, and anti-patterns.Strong Test Coverage: With 7,682 lines of validation and error-related tests, the codebase demonstrates commitment to quality and reliability.
Sophisticated Console Formatting: The console package provides 10+ formatting functions (FormatErrorMessage, FormatWarningMessage, etc.) for consistent user-facing output.
Good Examples Exist: Several files demonstrate excellent error messages:
time_delta.go: "invalid time delta format: +%s. Expected format like +25h, +3d, +1w, +1mo, +1d12h30m"manual_approval.go: "manual-approval value must be a string, got %T. Example: manual-approval: "production""repository_features_validation.go: "invalid repository format: %s. Expected format: owner/repo. Example: githubnext/gh-aw"Dedicated Error Quality Tests: The file
error_message_quality_test.goexists to validate error message quality.Areas for Improvement
Low Compliance with Error Message Standards (Critical)
Inconsistent Error Message Patterns (High)
Missing Examples in Complex Validations (High)
CLI Error Presentation (Medium)
Detailed Analysis
Error Message Categories by Quality
Category A: Excellent (8% - 20 messages)
Follow the complete template with examples:
Category B: Good (15% - ~35 messages)
Explain what's wrong and expected but lack examples:
Category C: Needs Improvement (77% - ~182 messages)
Minimal context or wrapped errors:
Impact on Developer Experience
Current Developer Journey with Poor Error:
engine: coppilotgh aw compile workflow.mdinvalid engine: coppilotImproved Developer Journey with Good Error:
engine: coppilotgh aw compile workflow.mdinvalid engine: coppilot. Valid engines are: copilot, claude, codex, custom. Example: engine: copilotTime Saved: 2-5 minutes per error × frequency of errors = significant productivity gain
Components Most in Need of Improvement
🤖 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
Task 1: Enhance Engine Validation Error Messages
Priority: High
Estimated Effort: Small
Focus Area: Error Message Quality
Description:
Improve error messages in
pkg/workflow/engine_validation.goto follow the error message style guide. Each error should include what's wrong, what's expected, and a concrete example.Acceptance Criteria:
Code Region:
pkg/workflow/engine_validation.goTask 2: Improve MCP Configuration Error Messages
Priority: High
Estimated Effort: Medium
Focus Area: Error Message Quality
Description:
Enhance error messages across all MCP-related validation files to provide actionable examples of correct MCP server configurations.
Acceptance Criteria:
Code Region:
pkg/workflow/mcp_*.go(all MCP-related files)Task 3: Add Examples to Schema Validation Errors
Priority: Medium
Estimated Effort: Medium
Focus Area: Error Message Quality
Description:
Enhance schema validation error messages to provide inline examples rather than just referencing the schema. When validation fails, show the user exactly what correct YAML should look like.
Acceptance Criteria:
Code Region:
pkg/workflow/schema_validation.goTask 4: Enhance CLI Error Presentation
Priority: Medium
Estimated Effort: Small
Focus Area: Developer Experience
Description:
Ensure all compilation errors are formatted through the console formatting layer before being displayed to users. Add color coding and structure to make errors more scannable.
Acceptance Criteria:
Code Region:
pkg/cli/compile_command.go,pkg/cli/compile*.goTask 5: Create Error Message Quality Linter
Priority: Low
Estimated Effort: Large
Focus Area: Long-term Quality
Description:
Create an automated linter that checks error messages for compliance with the error message style guide. This should run as part of CI to prevent regression.
Acceptance Criteria:
make lint-errorsCode Region:
scripts/lint_error_messages.go(new file)📊 Historical Context
Previous Focus Areas
🎯 Recommendations
Immediate Actions (This Week)
Improve top 5 most-encountered validation errors - Priority: High
Add error message quality tests - Priority: High
Short-term Actions (This Month)
Systematic improvement of validation errors - Priority: Medium
CLI error presentation enhancement - Priority: Medium
Documentation updates - Priority: Medium
Long-term Actions (This Quarter)
Error message quality linter - Priority: Low
Developer experience improvements - Priority: Low
--explainflag to compile command for detailed error explanations📈 Success Metrics
Track these metrics to measure improvement in Workflow Error Message Quality:
Next Steps
Generated by Repository Quality Improvement Agent
Next analysis: 2025-11-16 - Focus area will be selected based on diversity algorithm
Beta Was this translation helpful? Give feedback.
All reactions