Skip to content

fix(testing): respect selected webhook schema on SDK 16 - #3617

Merged
bokelley merged 1 commit into
16.xfrom
fix/16-webhook-served-schema-version
Nov 3, 2026
Merged

bokelley merged 1 commit into
16.xfrom
fix/16-webhook-served-schema-version

Conversation

@bokelley

@bokelley bokelley commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Storyboard webhook assertions ignored the run's selected protocol version and validated against the SDK default. Backport #3615 so an explicitly selected 3.0 run uses its own webhook schema and reports the exact resolved release. Incoming webhook version claims cannot override the trusted selection.

The production fix is identical to main commit 95a61bf707ef05255410eb40ff31c379354004e9. Stable-specific tests preserve 3.2.8's acceptance of legacy business statuses and use an independent synthetic schema constraint to verify downgrade refusal. Schema bundles, compatibility pins, and the 3.2.8 default are unchanged.

Validation: all 68 webhook tests passed with zero skips; full library/declaration build, typecheck, formatting and focused lint passed. Normal commit and pre-push hooks passed. Four Claude experts and three Codex reviewers approved the final diff. A patch changeset is included.

@bokelley
bokelley marked this pull request as ready for review November 3, 2026 17:02

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

Threads the run's selected AdCP version through storyboard webhook payload schema grading, replacing the hard-coded global ADCP_VERSION with options.adcpVersion ?? ADCP_VERSION in webhook-assertions.ts. Identity resolves via version-aware getSchemaDocumentByRef and the validator via getSchemaValidatorByRef(schemaRef, adcpVersion), both through the same bundle, keeping validator and reported schema_id consistent. Webhook body version claims are correctly treated as untrusted (witness-not-translator preserved). Seven regression tests cover pinning, downgrade resistance, legacy ref spelling, external-root isolation, cache non-sharing, and the unpinned default. Changeset present and correctly scoped as patch (internal params only, no exported-signature change).

No blocking findings. No medium findings. high_risk false, gated_paths false, no author-team gate, no prior decision. Falls through to row 9.

@bokelley
bokelley merged commit d4883a3 into 16.x Nov 3, 2026
41 checks passed
@bokelley
bokelley deleted the fix/16-webhook-served-schema-version branch November 3, 2026 17:15
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