[Schema Consistency] 🔍 Schema Consistency Check - Oct 26, 2025: Schema Completeness Analysis #2571
Closed
Replies: 2 comments 1 reply
-
|
/plan focus on adding examples to the schema. Mine from existing workflows in the repo. Split in chunks of max 5 elements. |
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
Executive Summary
This analysis took a radically different approach by examining schema metadata quality rather than schema-vs-code consistency. Key discovery: while the schemas validate correctly, they lack metadata (descriptions, examples, defaults) that would make them useful as documentation tools for IDEs and developers.
Key Metrics
Critical Issues
1. Schema Examples Field Almost Completely Unused⚠️
Severity: HIGH
Impact: IDE autocomplete and inline hints unavailable
Meanwhile: Documentation contains 119 YAML examples across 6 files!
Why This Matters:
examplesarray for IDE integrationRecommendation: Extract examples from documentation and add to schema
examplesfields.2. Nested Property Description Coverage Gaps⚠️
Severity: MEDIUM-HIGH
Impact: Users drilling into complex fields get no guidance
159 nested fields in main schema lack descriptions, including:
ontriggerssafe-outputsjobspermissionstoolsitemsExample:
safe-outputshas 20 nested properties, but 13 lack descriptions:Recommendation: Prioritize
safe-outputsandontriggers for description additions.3. MCP Schema Only 50% Description Coverage⚠️
Severity: HIGH
Impact: Most complex feature is least documented in schema
The MCP schema has the worst quality of all three schemas:
args.items,entrypointArgs.items,network.proxy-args.itemsWhy This Matters:
Recommendation: Bring MCP schema to 80%+ coverage, add examples for common patterns.
4. Top-Level Fields Missing Descriptions⚠️
Severity: MEDIUM
Impact: User-facing fields lack basic documentation
Missing descriptions:
runs-on- standard GitHub Actions fieldconcurrency- important for parallel execution controlengine_config(in $defs) - custom engine configurationRecommendation: Add descriptions to all top-level fields - quick win for schema quality.
5. Safe-Outputs Documentation Gap⚠️
Severity: MEDIUM-HIGH
Impact: Security features lack inline guidance
13 out of 20
safe-outputsnested properties (65%) lack descriptions:{ "field": "safe-outputs", "nested_props": 20, "props_without_desc": [ "create-issue", "create-agent-task", "create-discussion", "add-comment", "create-pull-request", "create-pull-request-review-comment", "create-code-scanning-alert", "add-labels", "update-issue", "push-to-pull-request-branch", "missing-tool", "upload-assets", "threat-detection" ] }Why This Matters: These are security-sensitive output mechanisms. Users need inline schema guidance.
Documentation Gaps
Schema vs Documentation Examples
Documentation has excellent examples:
safe-outputs.md: 46 examplesfrontmatter.md: 21 examplestools.md: 18 examplesengines.md: 15 examplestriggers.md: 12 examplesBut schemas have almost none:
Gap: Documentation and schema are disconnected. Schema should be single source of truth.
Schema Quality Improvements Needed
Immediate Actions (HIGH Priority)
Add
examplesto all top-level schema propertiesexamplesarrayFix
safe-outputsnested descriptionsImprove MCP schema coverage (50% → 80%+)
itemsfieldsAdd descriptions to: runs-on, concurrency, engine_config
Medium-Term Actions (MEDIUM Priority)
Add descriptions to nested
ontrigger propertiesdescriptionortitlefieldsAdd
defaultvalues where applicableConsider
x-examplesorx-usageschema extensionsexamplesallowsLong-Term Actions (LOW Priority)
Create examples gallery in documentation
Schema quality CI check
Parser Implementation Analysis
✅ Positive Findings
The parser implementation is exemplary:
github.com/santhosh-tekuri/jsonschema/v6//go:embed)sync.Oncepkg/parser/schema.go:Code Reference:
pkg/parser/schema.go:56-871Recommendations
Immediate (This Sprint)
runs-on,concurrencytop-level fieldsengine_config$defsafe-outputsnested propertiesShort-Term (Next Sprint)
examplesfieldsdefaultvalues to fields with implicit defaultsMedium-Term (Next Quarter)
ontrigger nested fieldsStrategy Performance
What Makes This Strategy Different
Previous strategies focused on:
This strategy focuses on: Schema as a documentation tool - metadata quality that enables IDE integration and developer experience.
Complementary Strategies
This strategy complements:
Schema Quality Grade Card
Overall Schema Quality: C+
Strengths:
Weaknesses:
Target Grades:
Next Steps
Strategy to use next: Recommend Strategy #2 or #6 (proven high-effectiveness strategies that complement this one)
Appendix: Analysis Methodology
Tools Used
jqfor JSON schema parsing and analysispkg/parser/schema.go)Metrics Calculated
descriptionfield at ALL nesting levelsexamplesarrayFiles Analyzed
pkg/parser/schemas/main_workflow_schema.json(122KB, 612 objects)pkg/parser/schemas/included_file_schema.json(19KB, 110 objects)pkg/parser/schemas/mcp_config_schema.json(4.5KB, 30 objects)pkg/parser/schema.go(871 lines)docs/src/content/docs/reference/*.md(all 9 reference docs)Strategy Cache
This analysis has been recorded in
/tmp/gh-aw/cache-memory/strategies.jsonas Strategy #8.Generated by: Schema Consistency Checker (Automated Workflow)
Run ID:
18823850355Date: October 26, 2025
Beta Was this translation helpful? Give feedback.
All reactions