Repository navigation
fix(compliance): skip webhook phases on sync create_media_buy (3.2.x backport of #8894) - #9128
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). 3.2.x's storyboard and test were identical to main's before #8894, so this is a clean cherry-pick with no adaptation. Refs #8771 (cherry picked from commit 7ec4059) Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean backport of #8894 to 3.2.x.
Verified: head is byte-position-identical to origin/main (version 1.5.0; phases primary_webhook_trigger, synchronous_trigger_silence, signing_keys_published_declared land at the expected main offsets). The skip_if gating is a correct logical complement — !context.media_buy_id for the sync-silence and declared-JWKS phases vs context.media_buy_id for the six emitted-webhook phases — so exactly one path grades and JWKS is never double-graded (confirmed by the added regression test). Changeset present (patch), scoped to the compliance asset; both touched files are under the 200 net-line threshold. The one real risk (a working envelope carrying media_buy_id misclassified as synchronous) is documented, covered by a dedicated regression test, and fixed in the runner (adcp-client#3683).
No Critical/High/Medium findings. high_risk false, gated_paths false, no author team gate, no prior decision. Rows 1–8 do not fire → row 9 approve.
Brings the published 3.2.12 release records to main. Resolved: - package.json, package-lock.json, static/schemas/source/index.json: main's. - static/compliance/published-versions.json: main's in this merge; the registration commit adds 3.1.34 and 3.2.12 after qualification. - CHANGELOG.md: main's plus the 3.2.12 block (forward-merge-release-records.cjs changelog). - dist/schemas/index.json, latest.json: 3.2.x's, regenerated in the next commit. - docs/governance/campaign/audit-trail.mdx and tasks/sync_plans.mdx: main's. adcontextprotocol#8980 is the 3.2 backport of adcontextprotocol#8931, which main carries in full. - tests/addie/compliance-validate-input-gates.test.ts: reverted to main's. adcontextprotocol#9000's 30 s timeout is 3.2.x-only; main caches the storyboard lookup (adcontextprotocol#8507). adcontextprotocol#9128 (3.2.x backport of adcontextprotocol#8894) auto-merged with no net change: 3.2.x's webhook-emission files equal main's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds 3.2.12 to static/compliance/published-versions.json (registerPublishedVersion) so hosted 3.2 resolves to the release carrying the webhook_emission synchronous-create_media_buy fix (adcontextprotocol#8894, 3.2.x backport adcontextprotocol#9128). Raises the hosted 3.2 alias floor in server/tests/unit/storyboards.test.ts from 3.2.11 to 3.2.12. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Backport of #8894 to
3.2.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). Sellers graded at 3.2 hit this today (#8771).Changes
Squash cherry-pick of
7ec4059021with-x. 3.2.x'swebhook-emission.yamlandtests/webhook-emission-storyboard.test.cjswere byte-identical to main's before #8894, so it applied cleanly and both files now equal main's.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).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 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-storyboard: 20/20 with the branch's pinned@adcp/sdk14.0.0-rc.53, and 20/20 with 17.0.0-beta.29 (the SDK hosted grading runs).node scripts/build-compliance.cjs --checkand everytest:storyboard-*suite pass;test:compliance-packaged-refs,test:compliance-source-authority,test:sdk-runner-capability-gates,test:immutable-release-artifactspass.check-changeset-protocol-scope.cjs origin/3.2.xandchangeset status --since=origin/3.2.xpass.Refs #8771
🤖 Generated with Claude Code