[Schema Consistency] Cross-Schema Consistency Analysis - December 9, 2025 #5920
Closed
Replies: 1 comment
-
|
⚓ Avast! This discussion be marked as outdated by Schema Consistency Checker. |
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.
-
Cross-Schema Consistency Analysis - December 9, 2025
This analysis identified 7 schema consistency issues across the three schema files, focusing on type mismatches, missing fields, and structural inconsistencies that could cause validation failures or limit feature availability.
Key Findings Overview
The cross-schema analysis revealed critical inconsistencies between
main_workflow_schema.json,included_file_schema.json, andmcp_config_schema.json. The most significant issues are type mismatches in version fields that cause runtime behavior to diverge from schema validation, and missing fields in included schemas that prevent advanced features from being used in imported files.Full Report Details
Analysis Metadata
pkg/parser/schemas/main_workflow_schema.jsonpkg/parser/schemas/included_file_schema.jsonpkg/parser/schemas/mcp_config_schema.jsonCritical Issues
🔴 Issue 1: Engine Version Type Mismatch
Severity: Critical
Location:
engine.versionpropertyFiles:
main_workflow_schema.jsonvsincluded_file_schema.jsonProblem:
Impact:
version: 20) validate in main but fail in included filesExample:
Recommendation: Update
included_file_schema.jsonengine.version to accept["string", "number"]Files to modify:
pkg/parser/schemas/included_file_schema.json:455- Change version type to array🔴 Issue 2: MCP Version Type Inconsistency
Severity: Critical
Location:
versionproperty in MCP tool configurationsFiles:
mcp_config_schema.jsonvsmain_workflow_schema.json&included_file_schema.jsonProblem:
Impact:
version: 3.11(for Python) fails in standalone configsExample:
Recommendation: Update
mcp_config_schema.jsonversion field to accept["string", "number"]Files to modify:
pkg/parser/schemas/mcp_config_schema.json:95-98- Change version type to array🔴 Issue 3: Engine Fields Missing in Included Schema
Severity: Critical
Location:
engineobject propertiesFiles:
included_file_schema.jsonmissing fields frommain_workflow_schema.jsonProblem:
argsconcurrencyconfigerror_patternsuser-agentImpact:
concurrency- users may want to control parallel execution in included filesuser-agentfor codex engine completely unavailable in includesExample:
Recommendation:
included_file_schema.jsonengine definitionconcurrencyas it's commonly neededFiles to modify (if adding fields):
pkg/parser/schemas/included_file_schema.json:437-486- Expand engine properties🔴 Issue 4: Network Firewall Property Missing
Severity: Critical
Location:
network.firewallpropertyFiles:
included_file_schema.jsonmissing frommain_workflow_schema.jsonProblem:
Impact:
Recommendation: Add
firewallproperty toincluded_file_schema.jsonnetwork configuration OR document why firewall is main-workflow-onlyFiles to modify (if adding):
pkg/parser/schemas/included_file_schema.json:629-652- Add firewall property to network object🟡 Issue 5: Safe-Outputs Semantic Overload
Severity: Moderate (by design, but confusing)
Location:
safe-outputspropertyFiles: Both schemas, different purposes
Problem: The
safe-outputsproperty name is identical but has completely different meanings:Main Workflow Schema:
Included File Schema:
Impact:
Recommendation:
safe-outputstosafe-jobsorjob-templatesfor clarity$commentfields explaining the dual purposeFiles to modify:
pkg/parser/schemas/main_workflow_schema.json- Add comment about dual usepkg/parser/schemas/included_file_schema.json:487-503- Enhance descriptiondocs/src/content/docs/reference/frontmatter.md🟡 Issue 6: Permissions Description Inconsistency
Severity: Moderate
Location:
permissionsproperty descriptionFiles: Both schemas, merge behavior unclear
Problem:
Impact:
Example Questions:
Recommendation:
Files to modify:
pkg/parser/schemas/main_workflow_schema.json- Update permissions descriptionpkg/parser/schemas/included_file_schema.json:653-744- Clarify merge behaviorAdditional Findings
ℹ️ Tools Configuration Subset (By Design)
Severity: Info
Observation: Included schema supports only 4 tools vs 13 in main schema
Tools in Main: agentic-workflows, bash, cache-memory, edit, github, playwright, repo-memory, safety-prompt, serena, startup-timeout, timeout, web-fetch, web-search (13 total)
Tools in Included: bash, cache-memory, github, repo-memory (4 total)
Impact:
Recommendation: Document which tools are available in included files vs main workflows
Positive Findings ✅
1. MCP Tool Definitions Consistent
The
$defs/stdio_mcp_tooland$defs/http_mcp_tooldefinitions are identical between main and included schemas (except for version type already reported). Properties, validation rules, and structure match perfectly.2. Schema Organization Sound
The three schemas serve distinct purposes effectively:
This architectural separation is well-designed.
Summary Statistics
Recommendations
High Priority (Fix Soon)
Fix engine.version type mismatch
pkg/parser/schemas/included_file_schema.json:455"type": "string"→"type": ["string", "number"]Fix MCP version type mismatch
pkg/parser/schemas/mcp_config_schema.json:95-98"type": "string"→"type": ["string", "number"]Document engine field availability
$commentexplaining why 5 fields excluded from includeddocs/src/content/docs/reference/frontmatter.mdconcurrencyif limitation not intentionalDocument network firewall availability
Medium Priority (Document/Clarify)
Clarify safe-outputs dual purpose
Document permissions merge behavior
Document tools availability
Low Priority (Future Improvement)
Schema validation in CI
Schema versioning
$idwith version to schemasTest Cases Needed
Add test workflows validating:
version: 20version: 3.11Strategy Performance
Why This Strategy Works:
When to Use: Every 3-4 analyses to maintain consistency across schema evolution. Essential for multi-schema projects where related schemas must stay synchronized.
Files Referenced
Schema Files
pkg/parser/schemas/main_workflow_schema.json(48,833 tokens)pkg/parser/schemas/included_file_schema.json(1,044 lines)pkg/parser/schemas/mcp_config_schema.json(184 lines)Documentation Files (To Update)
docs/src/content/docs/reference/frontmatter.mddocs/src/content/docs/reference/frontmatter-full.mddocs/src/content/docs/reference/included-files.md(if exists)Parser Files (For Context)
pkg/parser/frontmatter.gopkg/workflow/compiler.gopkg/workflow/engine.gopkg/workflow/safe_outputs.goNext Steps
Conclusion
This analysis revealed 4 critical type and field mismatches that should be addressed soon, plus 2 moderate documentation gaps that need clarification. The issues are straightforward to fix (mostly type updates) and will improve schema consistency significantly.
The most urgent fixes are the version type mismatches which cause runtime behavior to differ from validation, leading to confusing errors when users use numeric versions in included files or standalone MCP configs.
Beta Was this translation helpful? Give feedback.
All reactions