Repository navigation
fix(testing): respect selected webhook schema version - #3615
Merged
Merged
Conversation
bokelley
marked this pull request as ready for review
November 3, 2026 16:36
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, targeted fix with no blocking or medium findings.
Checked:
- Threads the run's selected
adcpVersion(options.adcpVersion ?? ADCP_VERSION) throughrunExpectWebhook→validateWebhookPayloadSchema→resolveWebhookSchemaIdentity/getSchemaValidatorByRef, so a 3.0 run grades its webhook against the 3.0 contract. - Webhook body version claims are deliberately ignored (fail-closed trust boundary) — correct posture, exercised directly by tests.
- Witness-not-translator preserved: tests assert the captured payload is unmutated (
deepEqual(captured, body)). - All three internal call sites updated;
patchchangeset is appropriate (no exported-API/wire-shape change). - Six-case test file covers selected-version grading, incoming-claim refusal, legacy ref spelling, scoped/same-version external fixtures, and the no-pin default.
Decision table: no critical/high (row 1 n/a), gated_paths false (row 2 n/a), not high_risk (rows 3/5 n/a), no medium findings (rows 4/8 n/a), no prior escalate (row 6 n/a), no author team gate (row 7 n/a). Falls through to row 9 → approve.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Webhook assertions in a 3.0 storyboard currently use the SDK's primary schema. A valid callback containing
result.status: pending_creativesfails the 3.3 schema and reports the wrong release in its diagnostic.Use the run's selected
adcpVersionfor payload validation and deriveschema_id/schema_urlfrom the same selected document's exact release. Incoming webhook metadata cannot select the validator. Existing caller APIs and the default for unpinned runs are preserved.Validation:
17.0.0-beta.15fails 6 of the 7 new regression cases; fixed source passes 7/7.The patch changeset applies to the SDK. Published schema bundles and package-version metadata are unchanged.