Skip to content

fix(conformance): validate version metadata in open responses - #3495

Merged
bokelley merged 1 commit into
mainfrom
fix/conformance-open-response-version-fields
Oct 28, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/conformance-open-response-version-fields

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Open response schemas can accept malformed adcp_version and adcp_major_version values 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, and oneOf roots. 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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

@bokelley
bokelley merged commit 99a50fd into main Oct 28, 2026
45 checks passed
@bokelley
bokelley deleted the fix/conformance-open-response-version-fields branch October 28, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant