Repository navigation
fix(conformance): validate version metadata in open responses - #3495
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — conformance strictness fix for open response envelope versions.
admitVersionFields in src/lib/conformance/schemaLoader.ts now merges the canonical version properties unconditionally rather than only when additionalProperties === false, so open response roots that omit the shared envelope no longer accept malformed adcp_version/adcp_major_version values. Authored property restrictions win via spread order ({ ...properties, ...node.properties }), nested-body constraints are preserved (recursion descends only into allOf/anyOf/oneOf), and open-root extensions still pass.
Test matrix covers open+closed roots across all three composition keywords, validates both Ajv and the public oracle, and asserts additionalProperties passthrough. Changeset present and right-sized (patch) for a conformance-tooling strictness fix with no wire/export change. No blocking or medium findings.
Decision table: no critical/high/medium findings; gated_paths false; high_risk false; no team gate; no prior decision. Falls through to row 9 → approve. (review_decision REVIEW_REQUIRED does not force escalation because gated_paths is false.)
Open response schemas can accept malformed
adcp_versionandadcp_major_versionvalues when their task schema omits the shared version envelope. AdCP 3.2.8’s response-root extension correction exposed this in the 16.x auction compliance backport tests.Add the canonical optional version properties at each response root and composition branch, regardless of
additionalProperties. Keep authored property restrictions, allowed root extensions, and every nested-body constraint. No released schemas are edited.Validation: library build and typecheck passed; all 31 oracle/schema-loader tests passed, including external-schema fixtures for open and closed
allOf,anyOf, andoneOfroots. The regression checks both Ajv and the public oracle, rejecting malformed version values and nested extensions while preserving narrower authored version rules. Normal pre-push formatting, typecheck and build passed.Backport to 16.x and the subsequent 15.9.x native AdCP 3.2.8 release after this lands. Existing 15.9.7 retains its native 3.2.5 bundle.