[Schema Consistency] Schema Consistency Check - Nov 15: Engine-Specific Feature Documentation Gaps #4010
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.
-
🔍 Schema Consistency Check - November 15, 2025
Executive Summary
This analysis discovered 5 actionable inconsistencies using a novel comment-driven approach that starts from code comments and developer documentation rather than schema definitions. The primary finding is a pattern of engine-specific feature support that is correctly implemented but poorly documented in schema descriptions.
Key Highlight: While implementation quality is high (with proper validation logic), schema documentation lacks critical engine compatibility information, potentially causing user confusion.
Strategy: NEW approach - Strategy-016 "Comment-Driven Documentation Gap Analysis" using bottom-up analysis from code comments to schema validation.
Quick Stats
Critical Issues Requiring Action
Critical Issues
1. 🔴 HTTP Transport Engine-Specific Support Not Documented
Severity: HIGH
Location:
pkg/parser/schemas/mcp_config_schema.jsonIssue:
Schema defines HTTP as valid MCP transport type but doesn't document it's only supported by specific engines (claude, copilot, codex). Custom engines only support stdio transport.
Evidence:
Impact: Users configuring HTTP transport for custom engines will get compile-time errors without understanding the engine limitation.
Recommendation:
Update MCP schema type description:
2. 🟡 timeout-minutes Default Value Claim Unverified
Severity: HIGH (Documentation Accuracy)
Location:
pkg/parser/schemas/main_workflow_schema.jsonIssue:
Schema claims "Defaults to 15 minutes for agentic workflows" but no code implements this default. Field extracted from frontmatter but no default value assigned.
Evidence:
= 15ortimeout = 15found in workflow packageTimeoutMinutes stringfield extracted but no default setImpact: Misleading documentation. Users expect 15-minute timeout but likely get GitHub Actions default of 360 minutes (6 hours).
Recommendation:
Either:
3. 🟡 max-turns Engine-Specific Support Not in Schema
Severity: MEDIUM
Location: Engine configuration
Issue:
Schema documents max-turns feature but doesn't mention engine compatibility. Custom engines don't support this feature.
Evidence:
Impact: Users may configure max-turns for custom engines and get compile errors.
Recommendation:
Add to max-turns schema description: "Note: Not all engines support max-turns. Supported by claude, copilot, and codex engines."
Moderate Issues
Moderate Issues
4. tools Meta-Fields Mixed with Actual Tools
Severity: LOW (Design/Organization)
Issue: Schema lists
safety-prompt,timeout, andstartup-timeoutas tool properties alongside actual tools (github, bash, etc), but these are configuration fields that get removed before passing to engine.Evidence:
Recommendation: Add comment in schema noting these are "meta configuration fields" rather than actual tools.
5. Pull Request max Parameter Limitation Undocumented
Severity: LOW
Issue: Code comment indicates max parameter not supported for PRs (always 1), but schema doesn't document this.
Evidence:
// Note: max parameter is not supported for pull requests (always limited to 1)Recommendation: Add to create-pull-request schema description: "Note: max parameter not applicable (always 1)"
Positive Findings
Positive Findings ✅
Perfect Consistency Across Schema, Comments, and Implementation
['admin', 'maintainer', 'write']perfectly matchedtrue(enabled) consistentKey Insight: Code quality is exceptional. Validation logic is solid with proper error messages. Only issue is schema documentation needs to catch up with implementation.
Methodology & Strategy Details
Methodology
Strategy 016: Comment-Driven Documentation Gap Analysis (NEW)
Novel Approach: Bottom-up analysis starting from code comments and inline documentation, working backwards to schema validation.
Why This Strategy:
Analysis Steps:
Key Discovery:
Code comments revealed engine-specific feature support patterns that were correctly implemented but poorly documented in schema. This pattern would be hard to detect with traditional field enumeration strategies.
Strategy Performance:
Complete Analysis Details
Key Insights
1. Engine-Specific Documentation is the Primary Gap
Pattern Identified: Features correctly implemented and validated, but schema doesn't document engine compatibility.
Examples:
Solution Pattern: Add engine compatibility notes to schema descriptions for all engine-dependent features.
2. Code Comment Accuracy is Exceptional
Finding: Developer comments in code closely match actual implementation.
Examples:
Impact: High comment quality makes bottom-up analysis reliable and effective.
3. Implementation Quality Exceeds Documentation
Finding: Validation logic is solid with proper interface methods and error messages, but schema docs lag behind.
HTTP Transport Example:
SupportsHTTPTransport()4. Bottom-Up Analysis Complements Top-Down Strategies
This Strategy Found:
Previous Strategies Found:
Conclusion: Comment-driven analysis catches different issues than field-level validation.
Recommendations
Immediate Actions (High Priority)
✅ Verify timeout-minutes Default Behavior
✅ Add Engine Compatibility Documentation
Short-Term Improvements (Medium Priority)
📋 Create Engine Support Matrix Documentation
📋 Document Safe-Outputs Limitations
Long-Term Considerations (Low Priority)
Files Referenced
Schema Files:
pkg/parser/schemas/main_workflow_schema.jsonpkg/parser/schemas/mcp_config_schema.jsonImplementation Files:
pkg/workflow/agent_validation.go- HTTP transport and max-turns validationpkg/workflow/compiler.go- Field extraction and processingpkg/workflow/frontmatter_extraction.go- Campaign validationpkg/workflow/safe_outputs.go- max-patch-size defaultpkg/workflow/role_checks.go- roles defaultpkg/workflow/agentic_engine.go- Engine capability interfacepkg/workflow/claude_engine.go,copilot_engine.go,codex_engine.go- Engine supportNext Steps
Analysis Completed: 2025-11-15
Strategy Used: Strategy-016 (NEW) - Comment-Driven Documentation Gap Analysis
Total Findings: 10 (5 issues, 5 positive)
Strategy Cache: Updated with strategy-016 (total: 14 strategies)
Next Analysis: 2025-11-16 (automatic)
Strategy Cache Update
Strategy-016 has been successfully added to the cache with:
This bottom-up approach complements existing top-down strategies and successfully identified a pattern of engine-specific feature documentation gaps that previous strategies missed.
Beta Was this translation helpful? Give feedback.
All reactions