Repository navigation
[Schema Consistency] Schema consistency check — 2026-11-15 #78005
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by Schema Consistency Checker. A newer discussion is available at Discussion #78281. |
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-15
Five inconsistencies found across the schema, compiler, and reference documentation. Strategy: new trigger and cross-field boundary audit. The precomputed workflow scan found no top-level keys missing from the schema; targeted workflow examples were reviewed, but this was not a full nested validation of every workflow.
Priority actions: Align schema validation for
workflow_run.workflowsandskip-if-decisionwith compiler checks, then correct the reference documentation for sandbox requirements, conclusion values, and label permissions.Findings and evidence
Schema accepts missing or empty workflow-run selectors.
pkg/parser/schemas/main_workflow_schema.json:1716defineson.workflow_run.workflowsas an optional array with no minimum length or nonblank-name constraint.pkg/workflow/agent_validation.go:478rejects missing or empty selections, anddocs/src/content/docs/reference/triggers.md:321describes the requirement. Schema-based tooling can therefore accept configurations that fail compilation. Require the property and at least one nonblank name, matching compiler behavior..github/workflows/dev-hawk.md:8shows a valid selection.Schema accepts Actions expressions in skip questions. The item schema at
pkg/parser/schemas/main_workflow_schema.json:39accepts any nonblank string, whilepkg/workflow/skip_if_decision.go:25rejects strings containing${{. The restriction is documented atdocs/src/content/docs/reference/frontmatter.md:85. Add the equivalent schema constraint and a regression case for an expression-containing question.Skip-question sandbox requirement is missing from its reference.
pkg/workflow/compiler_orchestrator_workflow.go:771rejects nonemptyskip-if-decisionwhen the AWF agent sandbox is disabled; the reference section atdocs/src/content/docs/reference/frontmatter.md:58describes engine support and the protected-session restriction without stating this prerequisite. Document the requirement and, where practical, represent the explicit disabled-sandbox combination in the schema..github/workflows/daily-file-diet.md:33and:54show questions paired with the AWF sandbox.Workflow-run conclusion list omits a supported value. The exhaustive list in
docs/src/content/docs/reference/triggers.md:340omitsstartup_failure, which both schema enums atpkg/parser/schemas/main_workflow_schema.json:1757and compiler validation atpkg/workflow/frontmatter_trigger_helpers.go:109accept. Add it to the reference list.Label-removal permissions are described incorrectly.
docs/src/content/docs/reference/triggers.md:452namesissues: writeandpull-requests: writeas the permissions avoided byremove_label: false. The compiler instead addsissues: writefor issue or pull-request labels anddiscussions: writefor discussion labels (pkg/workflow/compiler_activation_permissions.go:286), as does the app permission path at:98. Correct the reference, noting other features may independently require write permissions.Parser updates required
No compiler change is established as necessary by these findings; preserve its current checks while aligning the schema and documentation.
Workflow violations
No violation was established in the targeted examples. The precomputed top-level comparison is not a complete workflow validation.
Strategy performance
The new boundary audit produced five actionable findings by comparing compiler checks and reference claims against schema constraints and representative usage. Effectiveness: high; reuse: yes. Strategy results were saved to cache.
AWF comparison limitation
The precomputed AWF config comparison is degraded because canonical source retrieval failed. Canonical-source unavailability is a non-authoritative warning; no drift conclusion can be drawn from that comparison.
Next steps
References: §43680884407
All reactions