[Schema Consistency] 🔍 Schema Consistency Check - 2026-08-20 #54161
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-21T05:37:41.077Z.
|
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.
Summary
/tmp/gh-aw/agent/awf-config-drift.json), so any AWF config-source observations are non-authoritative warnings only. No corrective action is recommended from drift data in this run.Critical Issues
1.
strict:default is described correctly in docs/schema, but the CLI compile path appears to default to non-strict unless the caller sets the flagpkg/parser/schemas/main_workflow_schema.jsondefinesstrictas a boolean with defaulttrue.docs/src/content/docs/reference/frontmatter.mdsaysstrict:default istrueand that workflows run in strict mode unless set tofalse.pkg/cli/compile_compiler_setup.gounconditionally appliescompiler.SetStrictMode(config.Strict).strict=trueinpkg/cli/mcp_tools_readonly.go.pkg/cli/compile_compiler_setup.gosays flags are set fromconfig.Strictdirectly.config.Strictis false by default in the normal CLI command path, that contradicts both schema/docs and the MCP compile tool behavior. This could silently weaken validation forgh aw compilewhile docs promise strict-by-default behavior.pkg/parser/schemas/main_workflow_schema.jsondocs/src/content/docs/reference/frontmatter.mdpkg/cli/compile_compiler_setup.gopkg/cli/mcp_tools_readonly.gotrue), or update docs/schema if the product decision is actually different.2.
redirect:behavior in docs overstates whatgh aw compiledoes compared with parser/compiler implementationdocs/src/content/docs/reference/frontmatter.mdsays: "gh aw compileemits an informational message when aredirectis configured."pkg/workflow/compiler_orchestrator_frontmatter.gotreats a file as redirect-only only when it hasredirectand noonfield. In that case, compilation returns a redirect-only workflow error viapkg/workflow/compiler_orchestrator_workflow.go..github/workflows/ai-moderator.mdcontainsredirect:at line 3.redirect:gets an informational compile message. The implementation is narrower: redirect-only placeholders are a special case, while ordinary workflows with bothon:andredirect:are not obviously handled the same way in the inspected code path.redirectwithouton), andredirectmetadata.Documentation Gaps
3. Valid top-level fields implemented in schema/parser are missing from
frontmatter.mdThe main frontmatter reference appears incomplete for some valid top-level fields that exist in both the schema and parser:
max-turn-cache-missespkg/workflow/frontmatter_types.go,pkg/workflow/engine.go,pkg/workflow/engine_config_parser.godocs/src/content/docs/reference/glossary.md,docs/src/content/docs/reference/compiler-enterprise-environment-controls.mddocs/src/content/docs/reference/frontmatter.mdexcluded-envpkg/workflow/frontmatter_types.gomain_workflow_schema.jsondocs/src/content/docs/reference/frontmatter.mdimport-schemadocs/src/content/docs/reference/imports.md, but not surfaced in the main frontmatter reference.Why this matters:
frontmatter.mdreads like the authoritative frontmatter index. Users consulting only that page can miss valid supported fields.Action: Either:
frontmatter.md, orfrontmatter.mdas a partial guide and link a canonical complete field index.Schema Improvements Needed
4. Precomputed workflow field-gap data over-reports "schema violations" because it treats nested keys as top-level keys
/tmp/gh-aw/agent/schema-diff.jsonlistsfield_gaps.in_used_not_schemavalues such astitle,repo,noop,try,else,create-pull-request, andcapabilities..github/workflows/code-scanning-fixer.md:169hascreate-pull-request:as a nestedsafe-outputshandler, not a top-level field..github/workflows/daily-safeoutputs-git-simulator.md:304hasnoop:inside safe-output config/content, not as a top-level frontmatter key..github/workflows/dataflow-pr-discussion-dataset.md:587and several others usetry:/else:in markdown body structures, not as top-level frontmatter schema keys..github/workflows/daily-agent-of-the-day-blog-writer.mdcontainstitle:/authors:in a discussion payload block, not top-level frontmatter.used_in_workflowsso it only captures top-level frontmatter keys from the YAML header, not nested config blocks or markdown-body YAML-like content.Parser Updates Required
No parser bug was proven in this run for the inspected fields (
ambient-folders,runs-on-slim,check-for-updates,threat-detection-suppress,import-schema). Those looked internally consistent across schema and implementation.The main code-level follow-up is to verify the strict-mode default in the regular CLI compile path.
Workflow Violations
No confirmed real workflow schema violations were established from repository workflows in this run.
The strongest workflow-related observation was that the precomputed
used_in_workflows/in_used_not_schemaset contains many false positives caused by nested keys and body content.Recommendations
redirect:docs to describe redirect-only placeholder compilation behavior precisely.frontmatter.mdcoverage for implemented top-level fields such asmax-turn-cache-misses,excluded-env, andimport-schema(or clearly mark the page as partial).Strategy Performance
Why it worked:
/tmp/gh-aw/agent/schema-diff.jsonquickly eliminated low-value enumeration work.strict,redirect,max-turn-cache-misses,import-schema) was enough to produce actionable findings.Next Steps
redirect:documentation to match compile behaviordocs/src/content/docs/reference/frontmatter.mdAll reactions