Skip to content

fix(compliance): skip webhook phases on sync create_media_buy (3.2.x backport of #8894) - #9128

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-webhook-emission-sync-create-media-buy
Nov 20, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-webhook-emission-sync-create-media-buy

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Backport of #8894 to 3.2.x. webhook_emission fails polling-only sellers whose create_media_buy returns 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 7ec4059021 with -x. 3.2.x's webhook-emission.yaml and tests/webhook-emission-storyboard.test.cjs were byte-identical to main's before #8894, so it applied cleanly and both files now equal main's.

  • The primary create_media_buy trigger moves into its own phase (primary_webhook_trigger).
  • When it returns a media_buy_id (an inline terminal result), synchronous_trigger_silence asserts that no matching task webhook arrives within 5 s.
  • On a sync trigger, the emitted-webhook phases (idempotency_key_presence, operation_id_echo, idempotency_replay_side_effects, idempotency_key_stability, signing_keys_published, signature_validity) are skipped with skip_if: "context.media_buy_id". Triggers that return submitted, or working without a media_buy_id, are graded on signed webhooks as before.
  • A sync seller that declares webhook_signing.supported: true is still graded on its JWKS (signing_keys_published_declared).
  • Storyboard version 1.5.0 (same as main); patch changeset.

The working + media_buy_id misclassification 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/sdk 14.0.0-rc.53, and 20/20 with 17.0.0-beta.29 (the SDK hosted grading runs).
  • node scripts/build-compliance.cjs --check and every test:storyboard-* suite pass; test:compliance-packaged-refs, test:compliance-source-authority, test:sdk-runner-capability-gates, test:immutable-release-artifacts pass.
  • check-changeset-protocol-scope.cjs origin/3.2.x and changeset status --since=origin/3.2.x pass.

Refs #8771

🤖 Generated with Claude Code

…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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@bokelley
bokelley merged commit dd9ce2f into 3.2.x Nov 20, 2026
48 checks passed
@bokelley
bokelley deleted the backport/3.2.x-webhook-emission-sync-create-media-buy branch November 20, 2026 13:36
KonstantinMirin pushed a commit to KonstantinMirin/adcp that referenced this pull request Nov 21, 2026
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]>
KonstantinMirin pushed a commit to KonstantinMirin/adcp that referenced this pull request Nov 21, 2026
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]>
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