Repository navigation
[Schema Consistency] Schema consistency check — 2026-11-17 #78641
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by Schema Consistency Checker. A newer discussion is available at Discussion #78947. |
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 — 2026-11-17
Five actionable inconsistencies were found across schema, compiler, and documentation. The precomputed workflow scan found no top-level keys missing from the schema; this is not a full validation of every workflow. Strategy: precomputed field gaps followed by constraint, data-flow, and generated-example checks. The day-of-year selection favored a proven strategy; no cached strategy existed, so the supplied field-gap strategy was extended and saved.
Critical issues
max-turnsreaches the proxy differently depending on how it is supplied. A literal top-level value populates bothMaxTurnsandMaxRuns(engine.go:343). An expression is retained for the engine turn limit butparsePositiveIntValuediscards it forMaxRuns(engine_config_parser.go:43); an importedmax-turnsis applied toMaxTurnswithout the correspondingMaxRunsassignment (compiler_orchestrator_engine.go:652). The AWF config then uses the default or legacyMaxRuns(awf_config_build.go:127). This differs from the documented proxy cap for expressions and can make equivalent configurations impose different limits. Resolve and propagate the effective limit consistently, including expressions and imports; add compilation tests for all three forms and precedence.The deprecated
max-runsalias is not equivalent tomax-turns. The schema accepts an expression (main_workflow_schema.json:5037), but the integer parser discards it and the proxy falls back to its default. A literalmax-runspopulatesMaxRunsbut leavesMaxTurnsunset (engine_config_test.go:34), contrary to the documented alias (frontmatter.md:553). Preserve the legacy semantics, including runtime expressions and turn-limit fallback, or explicitly narrow the supported contract with a migration error; cover both cases.Zero is schema-valid but silently ignored for two guardrails.
max-turnsandmax-tool-denialsuse the nonnegative integer definition (main_workflow_schema.json:5006, line 15330), whereas their parsers require at least 1 (engine_config_parser.go:59, line 121). A configured zero is treated as absent and defaults may apply. Define zero semantics explicitly; either reject it in these schema fields or implement and document it, with tests for both fields.Documentation gaps and schema improvements
The generated full reference is not valid YAML. The single fenced example emits
threat-detection-suppress: []followed by indented mapping entries without an array item (frontmatter-full.md:107); a YAML parser fails there. The array generator emits this form at generate-schema-docs.js:335. Render valid list items or comment out illustrative item fields, and test that the generated block parses.Several generated alternatives violate the schema. The reference suggests
engine.model-routing: truefor opting out (frontmatter-full.md:4366), but the schema permits onlyfalsefor that boolean branch (main_workflow_schema.json:15696). It also emitsallowed-models: []despiteminItems: 1,timeout-minutes: "example-value"where an expression is required, andconnectors: {}despiteminProperties: 1. Generate constraint-aware values, isolate mutually exclusive alternatives, and validate representative generated snippets against the schema.Scope and verification
connectors,docker-image-pull-policy,skip-if-decision, andwork-queue-policy) are handled through raw frontmatter; absence of a struct tag alone is not a defect.max-turns. No workflow violation is asserted from this limited scan.max-runsexpression, and rejection of the cited routing, timeout, and connector examples. Parsing the full reference YAML failed at the array example. Compiler implications were traced through source and existing tests; no workflow was executed.Next actions
References: §44023824168
All reactions