Repository navigation
[Schema Consistency] Four validation and reference gaps — 2026-11-16 #78281
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by Schema Consistency Checker. A newer discussion is available at Discussion #78460. |
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
Four inconsistencies were found across schema validation, compiler checks, and generated documentation. The analysis used the cached precomputed field-gap triage strategy (proven strategy; day-of-year modulo 10 = 0). No critical runtime issue or confirmed repository workflow violation was found.
Priority actions: align the skip-question schema with compiler restrictions, document its sandbox prerequisite, and make generated reference examples syntactically valid and schema-valid.
Findings and evidence
Schema accepts Actions expressions that the compiler rejects. The schema only requires a nonblank string, while the parser rejects every question containing
${{. Schema validation accepted a question containing${{ github.event_name }}, although compilation rejects it. The reference already says expressions are unsupported. Add a schema prohibition matching the parser and a regression test.Schema accepts skip questions when the required sandbox is disabled; the reference omits the prerequisite. Schema validation accepted
strict: false,sandbox: {agent: false}, and a nonemptyskip-if-decisionlist together. The compiler rejects that combination; the firewall check explicitly disables it foragent: false. The skip-question reference describes the feature but does not state this requirement. Document that nonempty lists require AWF; express the straightforward disabled-agent conflict in schema where feasible, retaining compiler validation for resolved configuration.The generated complete reference is malformed YAML. Its array example emits
threat-detection-suppress: []followed by indented mapping entries without a list item. Parsing the full fenced example with PyYAML fails atrule. Change the generator to render array item examples as valid YAML and test parsing the generated block. The reference also lists alternative forms with duplicate keys, so make its example structure explicit when designing that test.Generated field examples violate their own schema. The reference shows
connectors: {}, but the schema requires at least one entry. It also shows source-sha: example-value, which violates the 40-hex-character pattern. Individual schema validations rejected both examples. Supply valid examples or omit optional fields without valid illustrative values; add generator tests validating representative field examples against their subschemas.Scope and limits
Next actions
Strategy performance: precomputed field-gap triage plus generated-example and boundary checks; 4 findings, high effectiveness, reuse recommended.
References: §43810158948
All reactions