[Schema Consistency] 🔍 Schema Consistency Check - Documentation Freshness & Example Validation (2025-10-26) #2489
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 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.
-
🔍 Schema Consistency Check - October 26, 2025
Summary
🎯 Strategy Innovation
This analysis used a completely new approach not seen in the previous 6 runs:
🚨 Critical Issues
1. Dead Code Candidates (P0)
Two schema fields appear to be abandoned features:
githubActionsStepfield:runtimesfield:Impact: Schema pollution, confusion for users reading schema, maintenance burden
2. Undocumented Active Feature (P1)
post-stepsfield:.github/workflows/audit-workflows.md:48)Impact: Users cannot discover or use this feature. Production workflows use undocumented features.
3. Missing Examples (P2)
Fields documented but lacking examples:
jobs- Mentioned insafe-outputs.mdbut no example shownmcp-servers- Documented intools.mdbut no configuration examplecommand- Described intriggers.mdbut no complete exampleImpact: Users struggle to implement these features without examples
4. YAML Boolean Gotcha (P3)
Critical Discovery: YAML version mismatch causes validation confusion!
YAML 1.1 Boolean Values:
on,off,yes,no,y,n,true,falseImpact:
5. Schema Fields Never Used (P3)
16 fields defined in schema but NOT used in any production workflow:
Full list (click to expand)
cachecommandcontainerdescriptionenvenvironmentfeaturesgithub-tokengithubActionsStepjobsmcp-serversrun-nameruns-onruntimesservicesNote: Some (like
description,github-token,mcp-servers) are legitimately optional advanced features. Others may be dead code.6. Schema Missing Examples Property (P3)
Current state:
{ "properties": { "tools": { "description": "Configure available tools", // ❌ No "examples" property } } }Recommended:
{ "properties": { "tools": { "description": "Configure available tools", "examples": [ {"edit": null, "bash": ["gh issue comment"]}, {"github": {"allowed": ["create_issue"]}} ] } } }Impact: Schema validation tools, IDE autocomplete, and documentation generators cannot show examples
✅ Positive Findings
Excellent Documentation Structure
The documentation is well-organized with specialized pages:
frontmatter.md- Overview and core fieldstools.md- Tool configuration (separate from main)triggers.md- Event triggers (separate from main)safe-outputs.md- Output configurationimports.md- Import systemThis prevents
frontmatter.mdfrom being overwhelming!Production Workflows Are Healthy
Parser Uses Correct YAML Spec
goccy/go-yamllibrary (YAML 1.2 compliant)onas string key, not boolean📊 Field Usage Statistics
Analysis of 55 production workflows:
📝 Recommendations
Immediate Actions (This Week)
Document
post-stepsfieldfrontmatter.mdwith example.github/workflows/audit-workflows.md:48Investigate Dead Code
githubActionsStepandruntimesAdd Missing Examples
jobsfield insafe-outputs.mdmcp-serversconfiguration intools.mdcommandtrigger complete example intriggers.mdShort-term Improvements (This Month)
Document YAML Gotchas
on,yes,no,offboolean parsing'on':Enhance Schema with Examples
"examples": [...]to all propertiesImprove Cross-References
frontmatter.mdto specialized docsLong-term Enhancements (This Quarter)
Schema Cleanup
"x-usage-frequency": "required|common|rare|experimental"annotations"deprecated": trueCreate Examples Gallery
Validation Tool Updates
📈 Strategy Performance
Strategy #7 Metrics:
Comparison to Previous Strategies:
Updated Cache: Strategy added to
/tmp/gh-aw/cache-memory/strategies.json🔍 Patterns Discovered
New Patterns from This Analysis
YAML Version Mismatch Risk
Dead Code Accumulation
Documentation Separation Trade-off
Confirmed Patterns from Previous Runs
🗂️ Files Analyzed
Schema Files (1)
pkg/parser/schemas/main_workflow_schema.json- 31 propertiesDocumentation Files (9)
docs/src/content/docs/reference/frontmatter.md- ~20 examplesdocs/src/content/docs/reference/frontmatter-full.mddocs/src/content/docs/reference/tools.md- multiple examplesdocs/src/content/docs/reference/triggers.md- multiple examplesdocs/src/content/docs/reference/safe-outputs.md- examples presentdocs/src/content/docs/reference/cache-memory.mddocs/src/content/docs/reference/network.md- examples presentdocs/src/content/docs/reference/imports.md- examples presentdocs/src/content/docs/reference/engines.md- examples presentProduction Workflows (55)
.github/workflows/*.md- All 55 workflow files analyzed🔗 Related Resources
✅ Next Steps
post-stepsfieldgithubActionsStepandruntimeshistoryGenerated by Schema Consistency Checker using Strategy #7
Analysis Date: 2025-10-26
Strategy Cache:
/tmp/gh-aw/cache-memory/strategies.jsonDetailed Findings:
/tmp/gh-aw/cache-memory/strategy-007-findings.mdBeta Was this translation helpful? Give feedback.
All reactions