Repository navigation
[Schema Consistency] Schema Consistency Check - 2026-11-16 #78460
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by Schema Consistency Checker. A newer discussion is available at Discussion #78467. |
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-16
Five actionable inconsistencies were found across schema, compiler, and documentation. The workflow review checked the precomputed top-level field inventory and representative Pi workflows; it was not a full validation of every workflow.
Key findings
max-turns: 0is accepted but discarded. The top-level schema and deprecatedengine.max-turnsuse the nonnegativetemplatable_integerdefinition (pkg/parser/schemas/main_workflow_schema.json:5006,:15335,:15723).parseMaxTurnsValuerequires at least 1 (pkg/workflow/engine_config_parser.go:59), so zero becomes unset and may resolve to an imported or default limit (pkg/workflow/compiler_orchestrator_engine.go:652,:743;pkg/workflow/engine_helpers.go:142). This can silently change the intended limit. Choose and document zero semantics; either reject it in both schema locations or preserve it through compilation. Add schema-to-compiled-output boundary tests.max-tool-denials: 0is also accepted but discarded. The same nonnegative schema is used atpkg/parser/schemas/main_workflow_schema.json:5011, whileparseMaxToolDenialsValuerequires at least 1 (pkg/workflow/engine_config_parser.go:121). Consequently the support validator sees an unset value (pkg/workflow/agent_validation.go:184); Copilot SDK falls back to 5 (pkg/workflow/copilot_engine_execution.go:647), and Pi receives no explicit configured limit (pkg/workflow/pi_engine_config.go:210). Require a positive value or define and implement zero consistently; cover both supported engines in tests.docs/src/content/docs/reference/glossary.md:1066says denials apply only to Copilot SDK, and:1077says other engines do not support the tool-call budget. The schema describes Pi support (pkg/parser/schemas/main_workflow_schema.json:5011), compiler validates built-in Pi drivers (pkg/workflow/agent_validation.go:194,:219), and.github/workflows/smoke-pi-routed.md:28uses both fields. Update both glossary entries to matchdocs/src/content/docs/reference/engines/pi.md:36, including driver restrictions.docs/src/content/docs/reference/frontmatter-full.md:25shows an empty connectors object although the schema requires at least one entry (pkg/parser/schemas/main_workflow_schema.json:27);:87showssource-sha: example-valuedespite the 40-hex pattern (pkg/parser/schemas/main_workflow_schema.json:240). The expression variants at:4376and:4389similarly useexample-valuerather than the required expression syntax. Improve example generation to respect object size, patterns and expression constraints, then validate individual generated examples against their field schemas. The complete reference combines alternatives and is not itself a single ready-to-compile workflow.pkg/workflow/agent_validation.go:198says the feature is supported only with Copilot SDK even though the branch at:194accepts built-in Pi drivers. Update the diagnostic to list supported Pi drivers and distinguish an unsupported custom driver; assert the message in validation tests.Scope and field-gap triage
The precomputed diff listed
connectors,docker-image-pull-policy,skip-if-decision, andwork-queue-policyas absent from the typed frontmatter structure. Targeted review found raw-frontmatter handling inpkg/workflow/connectors.go:123,pkg/workflow/docker.go:290,pkg/workflow/skip_if_decision.go:10, andpkg/workflow/work_queue_policy.go:179, respectively; absence of a struct tag alone is not a defect. The precomputed inventory reported no used top-level keys missing from the schema. No workflow violation was established in this focused review.No critical issue or authoritative AWF drift finding was established. The boundary findings merit priority because accepted guardrail values can differ from the effective configuration. No repository sources were modified or workflows executed.
Next actions
Strategy performance: High; five findings. Reuse this approach.
References: §43959177185
All reactions