Repository navigation
test(compliance): enforce sync webhook silence - #6539
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean SDK version bump (rc.18 → rc.20) plus a negative webhook assertion.
What I checked:
- Version bump is consistent across
package.json,package-lock.json,scripts/patch-sdk-rc15.mjs(EXPECTED_VERSION), andtests/patch-sdk-rc15.test.cjs. No hand-editedversionmismatch. webhook-emission.yamladds anexpect_no_webhooknegative assertion (1.3.0 → 1.4.0); the silence step's filteroperation_idcorrectly matches the request'spush_notification_config.operation_id, and movingcontributes: trueonto the silence step properly defers branch credit until the 5s observation window completes while the request step's task_id-absent validations still gate the branch. This is verification-tightening of an existing MUST-NOT onmain, not a new normative requirement.- Changeset present (
grade-sync-webhook-silence.md, patch); scope and type defensible. - No schema field/enum/required changes, no
oneOfdiscriminator regression, nodist/**released-artifact mutation, non-breaking (Editorial/Normative-non-breaking class, not Breaking).
Decision path: No critical/high/medium findings. gated_paths false, high_risk false, no deleted sensitive files, no author team gate, no prior decision. review_decision: REVIEW_REQUIRED does not gate here since gated_paths is false. Rows 1–8 do not fire → row 9 approve.
bokelley
added a commit
that referenced
this pull request
Nov 20, 2026
…backport of #8894) (#9127) 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]>
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.
What changed
@adcp/sdkfrom rc.18 to rc.20 to consumeexpect_no_webhookget_productsrequests for five secondsWhy
The existing storyboard verified that wholesale discovery returned inline without
a
task_id, but it contributed immediately and therefore could not detect aseller that emitted a duplicate completion webhook afterward. The new negative
assertion closes that observable conformance gap.
Closes #5389.
Validation
npm run test:sdk-shimsnpm run test:storyboard-branch-setsnpm run test:storyboard-test-kitsnpm run test:storyboard-check-enumnpm run build:compliance -- --check