Repository navigation
fix(compliance): skip webhook phases on sync create_media_buy (3.1.x backport of #8894) - #9127
Merged
bokelley merged 1 commit intoNov 20, 2026
Conversation
…backport of #8894) webhook_emission failed polling-only sellers whose create_media_buy returns the media buy inline. The spec says a synchronous completion sends no webhook, even when push_notification_config is present (webhooks.mdx "When webhooks fire", #5389), so such a seller failed expect_webhook_presence and the signing-key precheck. When the primary create_media_buy trigger returns the media buy inline, the storyboard now asserts that no task webhook arrives and skips the emitted-webhook phases. Triggers that return submitted, or working without a media_buy_id, are still graded on signed webhooks. A synchronous seller that declares webhook_signing.supported: true is still graded on its JWKS (signing_keys_published_declared). Adapted to 3.1.x: - The storyboard hunks are main's verbatim. Its version moves 1.3.1 -> 1.3.2: main's 1.4.x/1.5.0 include the wholesale get_products silence step (#6539), which 3.1 does not carry. - expect_no_webhook is new to the 3.1 storyboards, so its task entry is added to universal/storyboard-schema.yaml as main documents it. - 3.1.x pins @adcp/sdk 9.6.2, whose runner ignores context.* skip_if. The full-run tests are skipped under it; the structural gating test runs everywhere. They pass under 17.0.0-beta.29 (hosted grading) and 16.7.2. 3.1's wholesale get_products branch is not capability-gated, so the fake agent echoes context for it. Refs #8771 (cherry picked from commit 7ec4059) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean backport of #8894 to 3.1.x with no blocking or Medium findings.
Checked:
- Gate logic in
webhook-emission.yaml:synchronous_trigger_silenceskips on!context.media_buy_id(L304) and itsexpect_no_webhookfilter/triggered_by(L315-L318) are exact complements to the six emitted-webhook phases (skip_ifcontext.media_buy_id) — exactly one branch grades per run. signing_keys_published_declared(L864) does not double-grade withsigning_keys_published.expect_no_webhookis additive doc-comment only;webhook_signing/reporting_delivery_methodsexist in 3.1 base schemas.- Test harness change (172 adds) is additive; the
completed→submittedflip and per-keyreplayeddetection are correct; knownworking+media_buy_idlimitation is covered. - Patch eligibility holds — no schema/task/normative changes.
No high-risk flag, no gated paths, no author team gate, no prior decision. Minor Low note (PR body cites adcp-client#3683 vs #3682 in artifacts) not surfaced.
bokelley
deleted the
backport/3.1.x-webhook-emission-sync-create-media-buy
branch
November 20, 2026 13:19
This was referenced Nov 20, 2026
Merged
bokelley
added a commit
that referenced
this pull request
Nov 20, 2026
Adds 3.1.34 to static/compliance/published-versions.json (registerPublishedVersion) so hosted 3.1 resolves to the release carrying the webhook_emission synchronous-create_media_buy fix (#8894, 3.1.x backport #9127). Raises the stale hosted 3.1 alias floor in server/tests/unit/storyboards.test.ts from 3.1.30 to 3.1.34. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KonstantinMirin
pushed a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 21, 2026
Brings the published 3.1.34 release records to main. Resolved: - package.json, package-lock.json, static/schemas/source/index.json: main's. - CHANGELOG.md: main's plus the 3.1.34 block (forward-merge-release-records.cjs changelog). - dist/schemas/index.json, latest.json: 3.1.x's, regenerated in the next commit. - static/compliance/source/universal/webhook-emission.yaml and tests/webhook-emission-storyboard.test.cjs: main's. adcontextprotocol#9127 is the 3.1 adaptation of adcontextprotocol#8894, which main already carries in its 3.3 form. - docs/building/by-layer/L0/a2a-guide.mdx and docs/creative/canonical-formats-migration.mdx: main's. adcontextprotocol#8979 brought 3.1.x's docs to the agent-card.json path main already uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Backport of #8894 to
3.1.x.webhook_emissionfails polling-only sellers whosecreate_media_buyreturns the media buy inline, although the spec says a synchronous completion sends no webhook (webhooks.mdx "When webhooks fire", #5389). The seller report in #8771 was against 3.1.31; sellers certify against 3.1.Changes
Squash cherry-pick of
7ec4059021with-x, adapted to 3.1.x.Same semantics as main:
create_media_buytrigger moves into its own phase (primary_webhook_trigger).media_buy_id(an inline terminal result),synchronous_trigger_silenceasserts that no matching task webhook arrives within 5 s.idempotency_key_presence,operation_id_echo,idempotency_replay_side_effects,idempotency_key_stability,signing_keys_published,signature_validity) are skipped withskip_if: "context.media_buy_id". Triggers that returnsubmitted, orworkingwithout amedia_buy_id, are graded on signed webhooks as before.webhook_signing.supported: trueis still graded on its JWKS (signing_keys_published_declared).Differences from main:
get_productssilence step (test(compliance): enforce sync webhook silence #6539), which 3.1 does not.expect_no_webhookis documented inuniversal/storyboard-schema.yaml. No 3.1 storyboard used it before, so its task entry is copied from main's. Additive harness step kind.@adcp/sdk9.6.2, whose runner only evaluatestest_kit.*phaseskip_ifand has noexpect_no_webhook. The structural gating test runs on every SDK; the six full-run tests are skipped below SDK 14 with a reason. 3.1's wholesaleget_productsbranch is not capability-gated (main gates it onmedia_buy.buying_modes), so the fake agent in those runs echoescontextfor it.create_media_buysubmitted branch forbidsmedia_buy_id,create-media-buy-async-response-working.jsonis open, andwebhook_signing.supported/media_buy.reporting_delivery_methodsexist.The
working+media_buy_idmisclassification noted in #8894 is fixed in the runner by adcontextprotocol/adcp-client#3683.Patch eligibility
Conformance harness: an additive phase, an additive step kind on this line, and gates that stop grading a conformant seller on a webhook the spec says it must not send. No schema, task or normative change.
Testing
npm run test:webhook-emission-storyboardwith the pinned SDK 9.6.2: 12 pass, 6 skipped (runner-gated), 0 fail.@adcp/sdkswapped in locally: 17.0.0-beta.29 (hosted grading) and 16.7.2 both pass all six full runs and the gating test. One existing test,old missing-discovery behavior ships test-product…, fails under both because it pins 9.6.2's defaultpricing_option_id; that is unchanged by this PR. SDK 13.1.4 (adcp-3.1dist-tag) does not evaluatecontext.*skip_if, as with 3.1's existing creative gates.node scripts/build-compliance.cjs --checkand everytest:storyboard-*suite pass (cli-scenario-fixturesneeded a longer local timeout on a loaded machine);test:compliance-packaged-refs,test:compliance-source-authority,test:sdk-runner-capability-gates,test:immutable-release-artifactspass.check-changeset-protocol-scope.cjs origin/3.1.xandchangeset status --since=origin/3.1.xpass.Refs #8771
🤖 Generated with Claude Code